Struct take::Take [] [src]

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

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

Methods

impl<T> Take<T>
[src]

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

Consume and return the inner value.

Panics

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

Trait Implementations

impl<T: Debug> Debug for Take<T>
[src]

Formats the value using the given formatter.