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]
pub fn new(val: T) -> Take<T>
[src]
Create and return a new Take
value containing the given inner value.
pub fn take(&self) -> T
[src]
Consume and return the inner value.
Panics
If the inner value has already been consumed, the call will panic.