StreamPeek

Trait StreamPeek 

Source
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.

Required Methods§

Source

fn peek_value(&self) -> T

Source

fn peek_ref_cell(&self) -> Ref<'_, T>

Implementations on Foreign Types§

Source§

impl<STREAM, T> StreamPeek<T> for RefCell<STREAM>
where STREAM: StreamPeekRef<T>, T: Clone,

Source§

fn peek_ref_cell(&self) -> Ref<'_, T>

Source§

fn peek_value(&self) -> T

Implementors§