pub trait Nullable {
const NULL: Self;
// Required method
fn is_null(&self) -> bool;
}
Expand description
An object which has an “obviously invalid” value, for use with the
null_pointer_check!()
macro.
This trait is implemented for all integer types and raw pointers, returning
0
and null
respectively.
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.