pub struct Del<T> { /* private fields */ }Available on crate feature
_test only.Expand description
A wrapper for T but with a user defined deleter. ‘Del’ stands for ‘deleter’.
The deleter will be called on drop. Used to mock the Drop trait.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Del<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Del<T>
impl<T> Send for Del<T>where
T: Send,
impl<T> Sync for Del<T>where
T: Sync,
impl<T> Unpin for Del<T>where
T: Unpin,
impl<T> !UnwindSafe for Del<T>
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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