pub struct UniquePtr<T: UniquePtrTarget> { /* private fields */ }
Expand description
Similar to Box, but uses custom alloc and drop methods defined in UniquePtrTarget.
Implementations§
Trait Implementations§
source§impl<T: UniquePtrTarget> Default for UniquePtr<T>
impl<T: UniquePtrTarget> Default for UniquePtr<T>
source§impl<T: UniquePtrTarget> Deref for UniquePtr<T>
impl<T: UniquePtrTarget> Deref for UniquePtr<T>
source§impl<T: UniquePtrTarget> DerefMut for UniquePtr<T>
impl<T: UniquePtrTarget> DerefMut for UniquePtr<T>
Auto Trait Implementations§
impl<T> Freeze for UniquePtr<T>
impl<T> RefUnwindSafe for UniquePtr<T>where
T: RefUnwindSafe,
impl<T> !Send for UniquePtr<T>
impl<T> !Sync for UniquePtr<T>
impl<T> Unpin for UniquePtr<T>
impl<T> UnwindSafe for UniquePtr<T>where
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