pub struct PtrInner<'a, T>where
T: ?Sized,{ /* private fields */ }Expand description
Implementations§
Source§impl<'a, T> PtrInner<'a, T>where
T: 'a + ?Sized,
impl<'a, T> PtrInner<'a, T>where
T: 'a + ?Sized,
Sourcepub const fn as_non_null(&self) -> NonNull<T>
pub const fn as_non_null(&self) -> NonNull<T>
Converts this PtrInner<T> to a NonNull<T>.
Note that this method does not consume self. The caller should
watch out for unsafe code which uses the returned NonNull in a
way that violates the safety invariants of self.
Trait Implementations§
impl<'a, T> Copy for PtrInner<'a, T>where
T: 'a + ?Sized,
Auto Trait Implementations§
impl<'a, T> Freeze for PtrInner<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for PtrInner<'a, T>
impl<'a, T> !Send for PtrInner<'a, T>
impl<'a, T> !Sync for PtrInner<'a, T>
impl<'a, T> Unpin for PtrInner<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for PtrInner<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for PtrInner<'a, 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