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]
[]

[]

Create a new NoDrop.

[]

Extract the inner value.

Once extracted, the value can of course drop again.

Trait Implementations

impl<T> Drop for NoDrop<T>
[src]
[+]

[]

Executes the destructor for this type. Read more

impl<T> Deref for NoDrop<T>
[src]
[+]

The resulting type after dereferencing.

[]

Dereferences the value.

impl<T> DerefMut for NoDrop<T>
[src]
[+]

[]

Mutably dereferences the value.

Auto Trait Implementations

impl<T> Send for NoDrop<T> where
    T: Send

impl<T> Sync for NoDrop<T> where
    T: Sync