Trait list_fn::FlatMapFn

source ·
pub trait FlatMapFn {
    type Input;
    type OutputList: ListFn;

    // Required method
    fn map(&self, input: Self::Input) -> Self::OutputList;
}

Required Associated Types§

Required Methods§

source

fn map(&self, input: Self::Input) -> Self::OutputList

Map the given input item into a list.

Implementors§

source§

impl<F: FilterFn> FlatMapFn for FilterWrap<F>

§

type Input = <F as FilterFn>::Input

§

type OutputList = Option<<F as FilterFn>::Output>

source§

impl<I> FlatMapFn for FlattenList<I>where I: ListFn, I::Item: ListFn,

§

type Input = <I as ListFn>::Item

§

type OutputList = <I as ListFn>::Item

source§

impl<M: MapFn> FlatMapFn for MapWrap<M>

§

type Input = <M as MapFn>::Input

§

type OutputList = Option<<M as MapFn>::Output>