[][src]Trait drop_take::Take

pub trait Take {
    type Value;
    unsafe fn take(slot: &mut Self) -> Self::Value;
}

Types that can be taken from during DropTake-powered deconstructing.

Associated Types

Required Methods

Take the contained value out of this container. slot must not be used after calling this method, except to drop it. Dropping slot after calling this method must be safe and not drop the taken value.

Implementations on Foreign Types

impl<T: Default> Take for Cell<T>
[src]

impl<T> Take for Option<T>
[src]

impl<T> Take for ManuallyDrop<T>
[src]

Implementors