pub struct OwnedGlobalPtr<T, A: Allocator> { /* private fields */ }
Expand description
A global pointer that owns the memory it points to, and will free it on drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, A> Freeze for OwnedGlobalPtr<T, A>where
A: Freeze,
impl<T, A> !ObjSafe for OwnedGlobalPtr<T, A>
impl<T, A> RefUnwindSafe for OwnedGlobalPtr<T, A>where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> !Send for OwnedGlobalPtr<T, A>
impl<T, A> StoreCopy for OwnedGlobalPtr<T, A>
impl<T, A> !Sync for OwnedGlobalPtr<T, A>
impl<T, A> Unpin for OwnedGlobalPtr<T, A>where
A: Unpin,
impl<T, A> UnwindSafe for OwnedGlobalPtr<T, A>where
A: UnwindSafe,
T: RefUnwindSafe,
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