Trait list_fn::FlatScanFn[][src]

pub trait FlatScanFn {
    type InputItem;
    type InputResult;
    type OutputList: ListFn<End = Self>;
    type EndList: ListFn<Item = <Self::OutputList as ListFn>::Item>;
    fn map_item(self, item: Self::InputItem) -> Self::OutputList;
fn map_result(self, result: Self::InputResult) -> Self::EndList; }

Associated Types

Loading content...

Required methods

fn map_item(self, item: Self::InputItem) -> Self::OutputList[src]

Expand description

Map the given input item into a list.

fn map_result(self, result: Self::InputResult) -> Self::EndList[src]

Expand description

Map the given result into an end list.

Loading content...

Implementors

impl<S: FilterScanFn> FlatScanFn for FilterScanWrap<S>[src]

type InputItem = S::InputItem

type InputResult = S::InputResult

type OutputList = OptionList<S::OutputItem, Self>

type EndList = OptionList<S::OutputItem, S::OutputResult>

fn map_item(self, input: Self::InputItem) -> Self::OutputList[src]

fn map_result(self, result: Self::InputResult) -> Self::EndList[src]

impl<S: ScanFn> FlatScanFn for ScanWrap<S>[src]

type InputItem = S::InputItem

type InputResult = S::InputResult

type OutputList = OptionList<S::OutputItem, Self>

type EndList = OptionList<S::OutputItem, S::OutputResult>

fn map_item(self, input: Self::InputItem) -> Self::OutputList[src]

fn map_result(self, result: Self::InputResult) -> Self::EndList[src]

Loading content...