[−][src]Struct crndm::ptr::NonNull
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
impl<T: PSafe> NonNull<T>
[src]
pub const fn new_unchecked(ptr: *const T) -> Self
[src]
pub fn new(ptr: *const T) -> Option<Self>
[src]
Creates a Some(NonNull)
if ptr
is not null; otherwise None
.
pub fn as_ref<'a, 'b>(&'a self) -> &'b T
[src]
Trait Implementations
impl<T: PSafe + ?Sized> Clone for NonNull<T>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: PSafe + ?Sized> Copy for NonNull<T>
[src]
impl<T: Debug + PSafe + ?Sized> Debug for NonNull<T>
[src]
impl<T: PSafe + ?Sized> Deref for NonNull<T>
[src]
impl<T: Display + PSafe + ?Sized> Display for NonNull<T>
[src]
impl<T: ?Sized> !Send for NonNull<T>
[src]
impl<T: ?Sized> !Sync for NonNull<T>
[src]
impl<T: ?Sized> !TxOutSafe for NonNull<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> LooseTxInUnsafe for NonNull<T> where
T: LooseTxInUnsafe,
[src]
T: LooseTxInUnsafe,
impl<T> !PSafe for NonNull<T>
[src]
impl<T: ?Sized> RefUnwindSafe for NonNull<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T: ?Sized> TxInSafe for NonNull<T> where
T: TxInSafe,
[src]
T: TxInSafe,
impl<T: ?Sized> Unpin for NonNull<T>
[src]
impl<T: ?Sized> UnwindSafe for NonNull<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T: ?Sized> VSafe for NonNull<T> where
T: VSafe,
[src]
T: VSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, A> ToString<A> for T where
A: MemPool,
T: Display + ?Sized,
[src]
A: MemPool,
T: Display + ?Sized,
pub default fn to_pstring(&Self, &Journal<A>) -> String<A>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,