pub struct CustomDrop<I: DropKind>(/* private fields */);Expand description
The type has a custom Drop implementation, with the given drop behavior for its contents.
Trait Implementations§
Source§impl<I: DropKind> Add<CustomDrop<I>> for CustomDrop<NoDrop>
impl<I: DropKind> Add<CustomDrop<I>> for CustomDrop<NoDrop>
Source§impl<Rhs> Add<Rhs> for CustomDrop<AutoDrop>
impl<Rhs> Add<Rhs> for CustomDrop<AutoDrop>
impl DropKind for CustomDrop<NoDrop>
impl DropKind for CustomDrop<AutoDrop>
Auto Trait Implementations§
impl<I> Freeze for CustomDrop<I>where
PhantomData<I>: Freeze,
impl<I> RefUnwindSafe for CustomDrop<I>where
PhantomData<I>: RefUnwindSafe,
impl<I> Send for CustomDrop<I>where
PhantomData<I>: Send,
impl<I> Sync for CustomDrop<I>where
PhantomData<I>: Sync,
impl<I> Unpin for CustomDrop<I>where
PhantomData<I>: Unpin,
impl<I> UnsafeUnpin for CustomDrop<I>where
PhantomData<I>: UnsafeUnpin,
impl<I> UnwindSafe for CustomDrop<I>where
PhantomData<I>: 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