stream_fusion

Trait Transformer

Source
pub trait Transformer<I>:
    'static
    + Clone
    + Send {
    type Item;

    // Required method
    fn next(&mut self, input: I) -> Step<Self::Item>;
}

Required Associated Types§

Required Methods§

Source

fn next(&mut self, input: I) -> Step<Self::Item>

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> Transformer<I> for Id

Source§

type Item = I

Source§

impl<I, T, G, F> Transformer<I> for Map<T, F>
where T: Transformer<I>, F: 'static + Fn(T::Item) -> G + Clone + Send,

Source§

type Item = G