Struct transducers::Filtering [] [src]

pub struct Filtering<'p, T: 'p, P: Fn(&T) -> bool + 'p> { /* fields omitted */ }

The filtering transducer that passes through elements that satisfy a predicate.

Methods

impl<'p, T, P: Fn(&T) -> bool + 'p> Filtering<'p, T, P>
[src]

The filtering transducer passes through all elements for which the predicate p is true.

Trait Implementations

impl<'p, R: 'p, T: 'p, P: Fn(&T) -> bool + 'p> Transducer<'p, R, T, T> for Filtering<'p, T, P>
[src]

The type of step that application of the transducer produces.

Applies the transducer to the step function to obtain a new step function.