Struct take::Take [] [src]

pub struct Take<T> { /* fields omitted */ }

Cell allowing the inner value to be consumed without a mutable reference.


impl<T> Take<T>

Create and return a new Take value containing the given inner value.

Consume and return the inner value.


If the inner value has already been consumed, the call will panic.

Trait Implementations

impl<T: Debug> Debug for Take<T>

Formats the value using the given formatter.