Trait list_fn::ListFn[][src]

pub trait ListFn: Sized {
    type Item;
    type End;
    fn next(self) -> ListState<Self>;
}
Expand description

A function which returns a list.

Associated Types

type Item[src]

Expand description

A list item type.

type End[src]

Expand description

A value which is returned when the list has no more items.

Loading content...

Required methods

fn next(self) -> ListState<Self>[src]

Expand description

The main function which returns a list.

Loading content...

Implementations on Foreign Types

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

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

fn next(self) -> ListState<Self>[src]

Converts an iterator into a list.

type Item = I::Item

type End = Self

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

Option as a list.

type Item = T

type End = Self

fn next(self) -> ListState<Self>[src]

Loading content...

Implementors

impl<I, E> ListFn for OptionList<I, E>[src]

type Item = I

type End = E

fn next(self) -> ListState<Self>[src]

impl<I, F> ListFn for FlatScanState<I, F> where
    I: ListFn,
    F: FlatScanFn<InputItem = I::Item>,
    I::End: ResultFn<Result = F::InputResult>, 
[src]

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

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

fn next(self) -> ListState<Self>[src]

impl<I: ListFn, F: FlatMapFn<Input = I::Item>> ListFn for FlatMapList<I, F>[src]

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

type End = I::End

fn next(self) -> ListState<Self>[src]

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

type Item = L::Item

type End = ()

fn next(self) -> ListState<Self>[src]

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

type Item = T

type End = E

fn next(self) -> ListState<Self>[src]

Loading content...