FilterScanFn

Trait FilterScanFn 

Source
pub trait FilterScanFn: Sized {
    type InputItem;
    type InputResult;
    type OutputItem;
    type OutputResult;

    // Required methods
    fn map_input(self, input: Self::InputItem) -> FilterScanState<Self>;
    fn map_result(self, result: Self::InputResult) -> Self::OutputResult;

    // Provided methods
    fn some(self, first: Self::OutputItem) -> FilterScanState<Self> { ... }
    fn end(self) -> FilterScanState<Self> { ... }
}

Required Associated Types§

Required Methods§

Source

fn map_input(self, input: Self::InputItem) -> FilterScanState<Self>

Source

fn map_result(self, result: Self::InputResult) -> Self::OutputResult

Provided Methods§

Source

fn some(self, first: Self::OutputItem) -> FilterScanState<Self>

Source

fn end(self) -> FilterScanState<Self>

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.

Implementors§