Struct filters::ops::map::MapInput
[−]
[src]
#[must_use = "filters are lazy and do nothing unless consumed"]pub struct MapInput<F, M, FT, B>(_, _, _, _);
Methods
impl<F, M, FT, B> MapInput<F, M, FT, B>
[src]
Trait Implementations
impl<F: Clone, M: Clone, FT: Clone, B: Clone> Clone for MapInput<F, M, FT, B>
[src]
fn clone(&self) -> MapInput<F, M, FT, B>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<FT, F, T, B, M> Filter<T> for MapInput<F, M, FT, B> where
F: Filter<FT>,
B: Borrow<FT> + Sized,
M: Fn(&T) -> B,
[src]
F: Filter<FT>,
B: Borrow<FT> + Sized,
M: Fn(&T) -> B,
fn filter(&self, e: &T) -> bool
[src]
The function which is used to filter something
fn not(self) -> Not<Self> where
Self: Sized,
[src]
Self: Sized,
Helper to invert a filter. Read more
fn or<F>(self, other: F) -> Or<Self, F::IntoFilt> where
Self: Sized,
F: IntoFilter<N> + Sized,
[src]
Self: Sized,
F: IntoFilter<N> + Sized,
Helper to connect two filters via logical OR Read more
fn or_not<F>(self, other: F) -> Or<Self, Not<F::IntoFilt>> where
Self: Sized,
F: IntoFilter<N> + Sized,
[src]
Self: Sized,
F: IntoFilter<N> + Sized,
Helper to connect two filters via logical OR and NOT Read more
fn or3<F, F2>(
self,
other: F,
other2: F2
) -> Or<Self, Or<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFilter<N> + Sized,
F2: IntoFilter<N> + Sized,
[src]
self,
other: F,
other2: F2
) -> Or<Self, Or<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFilter<N> + Sized,
F2: IntoFilter<N> + Sized,
Helper to connect three filters via logical OR Read more
fn nor<F>(self, other: F) -> Not<Or<Self, F>> where
Self: Sized,
[src]
Self: Sized,
Helper to connect two filters via logical NOR Read more
fn xor<F>(self, other: F) -> XOr<Self, F> where
Self: Sized,
[src]
Self: Sized,
Helper to connect two filters via logical XOR Read more
fn and<F>(self, other: F) -> And<Self, F::IntoFilt> where
Self: Sized,
F: IntoFilter<N> + Sized,
[src]
Self: Sized,
F: IntoFilter<N> + Sized,
Helper to connect two filters via logical AND Read more
fn and3<F, F2>(
self,
other: F,
other2: F2
) -> And<Self, And<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFilter<N> + Sized,
F2: IntoFilter<N> + Sized,
[src]
self,
other: F,
other2: F2
) -> And<Self, And<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFilter<N> + Sized,
F2: IntoFilter<N> + Sized,
Helper to connect three filters via logical AND Read more
fn and_not<F>(self, other: F) -> And<Self, Not<F::IntoFilt>> where
Self: Sized,
F: IntoFilter<N> + Sized,
[src]
Self: Sized,
F: IntoFilter<N> + Sized,
Helper to connect two filters via logical AND and NOT Read more
fn nand<F>(self, other: F) -> Not<And<Self, F>> where
Self: Sized,
[src]
Self: Sized,
Helper to connect two filters via logical NAND Read more
fn map_input<O, B, T, M>(self, map: M) -> MapInput<Self, M, O, B> where
Self: Sized,
M: Fn(&T) -> N,
B: Borrow<O> + Sized,
[src]
Self: Sized,
M: Fn(&T) -> N,
B: Borrow<O> + Sized,
Helper to transform the input of a filter Read more
fn into_failable(self) -> IntoFailable<Self, ()> where
Self: Sized,
[src]
Self: Sized,
Helper to transform a filter into a FailableFilter Read more
fn as_failable<'a>(&'a self) -> AsFailable<'a, Self, ()> where
Self: 'a,
[src]
Self: 'a,
Helper to borrow a filter as a FailbleFilter Read more