pub struct Ptr<T: ?Sized>(pub Option<NonNull<UnsafeCell<T>>>);Tuple Fields§
§0: Option<NonNull<UnsafeCell<T>>>Implementations§
Trait Implementations§
Source§impl<T: ?Sized> DafnyPrint for Ptr<T>
impl<T: ?Sized> DafnyPrint for Ptr<T>
Source§impl<T> NontrivialDefault for Ptr<T>
impl<T> NontrivialDefault for Ptr<T>
fn nontrivial_default() -> Self
impl<T: ?Sized> Copy for Ptr<T>
impl<T: ?Sized> Eq for Ptr<T>
Auto Trait Implementations§
impl<T> Freeze for Ptr<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for Ptr<T>
impl<T> !Send for Ptr<T>
impl<T> !Sync for Ptr<T>
impl<T> Unpin for Ptr<T>where
T: ?Sized,
impl<T> !UnwindSafe for Ptr<T>
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