Trait Drain

Source
pub trait Drain<T> {
    // Required method
    fn drain(&mut self) -> T;
}
Expand description

A value that can produce a T by draining its content.

After being drained, the value should be ready to be reused.

Required Methods§

Source

fn drain(&mut self) -> T

Drain the Observer, producing a T.

Implementors§