pub struct Peek<T, U> { /* fields omitted */ }
Expand description
A source wrapper that caches the wrapped inner source.
impl<T, U> Peek<T, U> where
T: Source<Output = U>,
Returns the most recent value returned from self.source()
, otherwise None
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
fn from(inner: T) -> Self
The source’s output type.
Produces the next value in the stream of values.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.