1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use libc::c_void;
use std::ptr;

pub type Any = *mut c_void;
#[allow(dead_code)]
pub type ConstAny = *const c_void;

#[repr(C)]
pub struct FatAny {
    raw1: *mut c_void,
    raw2: *mut c_void,
}

impl FatAny {
    pub fn null() -> FatAny {
        FatAny {
            raw1: ptr::null_mut(),
            raw2: ptr::null_mut(),
        }
    }
}