[][src]Trait lhlist::iter::Adapter

pub trait Adapter<T> {
    type Output;
    fn adapt(&mut self, input: T) -> Self::Output;
}

An iterator component that transforms an input.

Associated Types

type Output

Transformation output type

Loading content...

Required methods

fn adapt(&mut self, input: T) -> Self::Output

Transforms the input and returns its output

Loading content...

Implementors

impl<F, T> Adapter<T> for MapAdapter<F> where
    F: MapFunc<T>, 
[src]

type Output = <F as MapFunc<T>>::Output

impl<T> Adapter<T> for Nil[src]

type Output = T

impl<T, Head, Tail> Adapter<T> for Cons<Head, Tail> where
    Tail: Adapter<T>,
    Head: Adapter<<Tail as Adapter<T>>::Output>, 
[src]

type Output = <Head as Adapter<<Tail as Adapter<T>>::Output>>::Output

Loading content...