ListFn

Trait ListFn 

Source
pub trait ListFn: Sized {
    type Item;
    type End;

    // Required method
    fn next(self) -> ListState<Self>;
}
Expand description

A function which returns a list.

Required Associated Types§

Source

type Item

A list item type.

Source

type End

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

Required Methods§

Source

fn next(self) -> ListState<Self>

The main function which returns a list.

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.

Implementations on Foreign Types§

Source§

impl<I: Iterator> ListFn for &mut I

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

Source§

fn next(self) -> ListState<Self>

Converts an iterator into a list.

Source§

type Item = <I as Iterator>::Item

Source§

type End = &mut I

Source§

impl<T> ListFn for Option<T>

Option as a list.

Source§

type Item = T

Source§

type End = Option<T>

Source§

fn next(self) -> ListState<Self>

Implementors§

Source§

impl<I, E> ListFn for OptionList<I, E>

Source§

type Item = I

Source§

type End = E

Source§

impl<I, E> ListFn for MapResultList<I, E>
where I: ListFn, I::End: ResultFn, E: MapResultFn<Input = <I::End as ResultFn>::Result>,

Source§

type Item = <I as ListFn>::Item

Source§

type End = Id<<E as MapResultFn>::Output>

Source§

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

Source§

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

Source§

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

Source§

type End = <I as ListFn>::End

Source§

impl<L: ListFn> ListFn for TakeList<L>

Source§

type Item = <L as ListFn>::Item

Source§

type End = ()

Source§

impl<T, E> ListFn for Empty<T, E>

Source§

type Item = T

Source§

type End = E