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]

[src]

Create a new NoDrop.

[src]

Extract the inner value.

Once extracted, the value can of course drop again.

Trait Implementations

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

[src]

Executes the destructor for this type. Read more

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

The resulting type after dereferencing.

[src]

Dereferences the value.

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

[src]

Mutably dereferences the value.