#[repr(transparent)]pub struct Null(pub usize);
Expand description
A type representing a null
pointer with potential tag bits.
The contained usize
is the value of the pointer’s tag.
Tuple Fields§
§0: usize
Implementations§
Trait Implementations§
source§impl Ord for Null
impl Ord for Null
source§impl PartialOrd for Null
impl PartialOrd for Null
impl Copy for Null
impl Eq for Null
impl StructuralPartialEq for Null
Auto Trait Implementations§
impl Freeze for Null
impl RefUnwindSafe for Null
impl Send for Null
impl Sync for Null
impl Unpin for Null
impl UnwindSafe for Null
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)