stream_fusion

Trait Source

Source
pub trait Source {
    type Item;
    type Morsel: Morsel<Item = Self::Item>;
    type NextFuture<'next>: 'next + Future<Output = Option<Self::Morsel>>
       where Self: 'next;

    // Required method
    fn next(&mut self) -> Self::NextFuture<'_>;
}

Required Associated Types§

Source

type Item

Source

type Morsel: Morsel<Item = Self::Item>

Source

type NextFuture<'next>: 'next + Future<Output = Option<Self::Morsel>> where Self: 'next

Required Methods§

Source

fn next(&mut self) -> Self::NextFuture<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I, const N: usize> Source for WindowIterator<I, N>
where I: Iterator, I::Item: 'static + Send,

Source§

type Item = <I as Iterator>::Item

Source§

type Morsel = ChunkMorsel<<WindowIterator<I, N> as Source>::Item, N>

Source§

type NextFuture<'next> = impl Future<Output = Option<<WindowIterator<I, N> as Source>::Morsel>> + 'next where Self: 'next