1 2 3 4 5 6 7 8 9 10 11
/// A FFI compatible NULL type #[repr(C)] #[derive(Default)] pub struct Null { _dummy: u8 } impl Null { /// A new NULL object pub fn null() -> Self { Self{ _dummy: 0 } } }
1 2 3 4 5 6 7 8 9 10 11
/// A FFI compatible NULL type #[repr(C)] #[derive(Default)] pub struct Null { _dummy: u8 } impl Null { /// A new NULL object pub fn null() -> Self { Self{ _dummy: 0 } } }