Expand description
An unsafe pointer with dereferencing capability
This type is !PSafe
and its constructor functions are unsafe
. This is
because of NonNull
treating like a raw pointer. NonNull
objects are
useful for obtaining performance.
PNonNull
is an alias name in the pool module for LogNonNull
.
Implementations
Trait Implementations
impl<T: PSafe + ?Sized> Copy for NonNull<T>
impl<T: Eq + PSafe + ?Sized> Eq for NonNull<T>
impl<T: ?Sized> !Send for NonNull<T>
impl<T: PSafe + ?Sized> StructuralEq for NonNull<T>
impl<T: ?Sized> !Sync for NonNull<T>
impl<T: ?Sized> !TxOutSafe for NonNull<T>
Auto Trait Implementations
impl<T> LooseTxInUnsafe for NonNull<T>
impl<T> !PSafe for NonNull<T>
impl<T: ?Sized> PSend for NonNull<T> where
T: PSend,
impl<T: ?Sized> RefUnwindSafe for NonNull<T> where
T: RefUnwindSafe,
impl<T: ?Sized> TxInSafe for NonNull<T> where
T: TxInSafe,
impl<T: ?Sized> Unpin for NonNull<T>
impl<T: ?Sized> UnwindSafe for NonNull<T> where
T: RefUnwindSafe,
impl<T: ?Sized> VSafe for NonNull<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more