Struct nodrop::NoDrop [−][src]
pub struct NoDrop<T>(_);
A type holding T that will not call its destructor on drop
Implementations
impl<T> NoDrop<T>
[src]
impl<T> NoDrop<T>
[src]pub fn new(value: T) -> NoDrop<T>
[src]
Create a new NoDrop.
pub fn into_inner(self) -> T
[src]
Extract the inner value.
Once extracted, the value can of course drop again.
Trait Implementations
Auto Trait Implementations
impl<T> Send for NoDrop<T> where
T: Send,
T: Send,
impl<T> Sync for NoDrop<T> where
T: Sync,
T: Sync,
impl<T> Unpin for NoDrop<T> where
T: Unpin,
T: Unpin,