pub(crate) struct DetachablePointer<P: Pointer> {
pointer: Option<P>,
}
Fields§
§pointer: Option<P>
Implementations§
Source§impl<P: Pointer> DetachablePointer<P>
impl<P: Pointer> DetachablePointer<P>
pub fn as_mut(&mut self) -> MutPointer<P::T>
Trait Implementations§
Source§impl<P: Pointer> Deref for DetachablePointer<P>
impl<P: Pointer> Deref for DetachablePointer<P>
Source§impl<P: Pointer> Drop for DetachablePointer<P>
impl<P: Pointer> Drop for DetachablePointer<P>
Source§impl<P: Pointer> From<DetachablePointer<P>> for ManagedPointer<P>
impl<P: Pointer> From<DetachablePointer<P>> for ManagedPointer<P>
Source§fn from(dptr: DetachablePointer<P>) -> Self
fn from(dptr: DetachablePointer<P>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for DetachablePointer<P>where
P: Freeze,
impl<P> RefUnwindSafe for DetachablePointer<P>where
P: RefUnwindSafe,
impl<P> Send for DetachablePointer<P>where
P: Send,
impl<P> Sync for DetachablePointer<P>where
P: Sync,
impl<P> Unpin for DetachablePointer<P>where
P: Unpin,
impl<P> UnwindSafe for DetachablePointer<P>where
P: UnwindSafe,
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