Struct nodrop::NoDrop [−][src]
pub struct NoDrop<T>(_);
A type holding T that will not call its destructor on drop
Methods
impl<T> NoDrop<T>[src]
impl<T> NoDrop<T>pub fn new(value: T) -> NoDrop<T>[src]
pub fn new(value: T) -> NoDrop<T>Create a new NoDrop.
pub fn into_inner(self) -> T[src]
pub fn into_inner(self) -> TExtract the inner value.
Once extracted, the value can of course drop again.
Trait Implementations
impl<T> Drop for NoDrop<T>[src]
impl<T> Drop for NoDrop<T>impl<T> Deref for NoDrop<T>[src]
impl<T> Deref for NoDrop<T>type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T[src]
fn deref(&self) -> &TDereferences the value.
impl<T> DerefMut for NoDrop<T>[src]
impl<T> DerefMut for NoDrop<T>