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]

[src]

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

[src]

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]

[src]

Formats the value using the given formatter. Read more