pub struct NullPtr;
Expand description
A null pointer.
NullPtr
implements CastInto<Ptr<T>>
, so it can be
passed as argument to functions accepting pointers. It’s possible to use Ptr::null()
as well, but that would require a type annotation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NullPtr
impl RefUnwindSafe for NullPtr
impl Send for NullPtr
impl Sync for NullPtr
impl Unpin for NullPtr
impl UnwindSafe for NullPtr
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