Struct nodrop::NoDrop [] [src]

pub struct NoDrop<T>(_);

A type holding T that will not call its destructor on drop


impl<T> NoDrop<T>

fn new(value: T) -> NoDrop<T>

Create a new NoDrop.

fn into_inner(self) -> T

Extract the inner value.

Once extracted, the value can of course drop again.

Trait Implementations

impl<T> Drop for NoDrop<T>

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl<T> Deref for NoDrop<T>

type Target = T

The resulting type after dereferencing

fn deref(&self) -> &T

The method called to dereference a value

impl<T> DerefMut for NoDrop<T>

fn deref_mut(&mut self) -> &mut T

The method called to mutably dereference a value