AsStream

Trait AsStream 

Source
pub trait AsStream<T> {
    // Required method
    fn as_stream(self: Rc<Self>) -> Rc<dyn Stream<T>>;
}
Expand description

Used co cast Rc of concrete stream into Rc of dyn Stream.

Required Methods§

Source

fn as_stream(self: Rc<Self>) -> Rc<dyn Stream<T>>

Implementors§

Source§

impl<T, STREAM: Stream<T> + 'static> AsStream<T> for STREAM