pub trait StreamPeek<T> {
// Required methods
fn peek_value(&self) -> T;
fn peek_ref_cell(&self) -> Ref<'_, T>;
}Expand description
The trait through which a Streams can current value can be peeked at.
pub trait StreamPeek<T> {
// Required methods
fn peek_value(&self) -> T;
fn peek_ref_cell(&self) -> Ref<'_, T>;
}The trait through which a Streams can current value can be peeked at.