Trait lending_stream::StreamExt

source ·
pub trait StreamExt: Stream {
    // Provided methods
    fn lend(self) -> Lend<Self>
       where Self: Sized + Unpin { ... }
    fn lend_mut(self) -> LendMut<Self>
       where Self: Sized + Unpin { ... }
}
Expand description

An extension for the Stream trait

Provided Methods§

source

fn lend(self) -> Lend<Self>
where Self: Sized + Unpin,

Creates a stream which yields a reference to self as well as the next value.

source

fn lend_mut(self) -> LendMut<Self>
where Self: Sized + Unpin,

Creates a stream which yields a mutable reference to self as well as the next value.

Implementors§

source§

impl<S: Stream> StreamExt for S