Trait list_fn::ListFn[][src]

pub trait ListFn: Sized {
    type Item;
    type End;
    fn list(self) -> List<Self>;
}

A function which returns a list.

Associated Types

Loading content...

Required methods

fn list(self) -> List<Self>[src]

Loading content...

Implementations on Foreign Types

impl<I: Iterator> ListFn for &mut I[src]

Any &mut Iterator is a ListFn<End = Self>.

type Item = I::Item

type End = Self

impl<T> ListFn for Option<T>[src]

type Item = T

type End = Self

Loading content...

Implementors

impl<I: ListFn, F: FlatScan<InputItem = I::Item>> ListFn for FlatScanList<I, F>[src]

type Item = <F::ItemList as ListFn>::Item

type End = <F::EndList as ListFn>::End

impl<L: ListFn> ListFn for Take<L>[src]

type Item = L::Item

type End = ()

impl<T> ListFn for Empty<T>[src]

type Item = T

type End = Self

Loading content...