Struct filters::ops::failable::AsFailable
[−]
[src]
#[must_use = "filters are lazy and do nothing unless consumed"]pub struct AsFailable<'a, F: 'a + ?Sized, E>(_, _);
Methods
impl<'a, F: 'a + ?Sized, E> AsFailable<'a, F, E>
[src]
fn new(a: &'a F) -> AsFailable<F, E>
[src]
Trait Implementations
impl<'a, F: Clone + 'a + ?Sized, E: Clone> Clone for AsFailable<'a, F, E>
[src]
fn clone(&self) -> AsFailable<'a, F, E>
[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<'a, F: ?Sized, N, E> FailableFilter<N, E> for AsFailable<'a, F, E> where
F: Filter<N> + 'a,
[src]
F: Filter<N> + 'a,
fn filter(&self, e: &N) -> Result<bool, E>
[src]
The function which is used to filter something
fn not(self) -> FailableNot<Self> where
Self: Sized,
[src]
Self: Sized,
Helper to invert a filter. Read more
fn or<F>(self, other: F) -> FailableOr<Self, F::IntoFilt> where
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
[src]
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
Helper to connect two filters via logical OR Read more
fn or_not<F>(self, other: F) -> FailableOr<Self, FailableNot<F::IntoFilt>> where
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
[src]
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
Helper to connect two filters via logical OR and NOT Read more
fn or3<F, F2>(
self,
other: F,
other2: F2
) -> FailableOr<Self, FailableOr<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
F2: IntoFailableFilter<N, E> + Sized,
[src]
self,
other: F,
other2: F2
) -> FailableOr<Self, FailableOr<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
F2: IntoFailableFilter<N, E> + Sized,
Helper to connect three filters via logical OR Read more
fn nor<F>(self, other: F) -> FailableNot<FailableOr<Self, F>> where
Self: Sized,
[src]
Self: Sized,
Helper to connect two filters via logical NOR Read more
fn xor<F>(self, other: F) -> FailableXOr<Self, F> where
Self: Sized,
[src]
Self: Sized,
Helper to connect two filters via logical XOR Read more
fn and<F>(self, other: F) -> FailableAnd<Self, F::IntoFilt> where
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
[src]
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
Helper to connect two filters via logical AND Read more
fn and3<F, F2>(
self,
other: F,
other2: F2
) -> FailableAnd<Self, FailableAnd<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
F2: IntoFailableFilter<N, E> + Sized,
[src]
self,
other: F,
other2: F2
) -> FailableAnd<Self, FailableAnd<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
F2: IntoFailableFilter<N, E> + Sized,
Helper to connect three filters via logical AND Read more
fn and_not<F>(self, other: F) -> FailableAnd<Self, FailableNot<F::IntoFilt>> where
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
[src]
Self: Sized,
F: IntoFailableFilter<N, E> + Sized,
Helper to connect two filters via logical AND and NOT Read more
fn nand<F>(self, other: F) -> FailableNot<FailableAnd<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) -> FailableMapInput<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 map_err<M, OE>(self, map: M) -> FailableMapErr<Self, M, E, OE> where
Self: Sized,
M: Fn(E) -> OE,
[src]
Self: Sized,
M: Fn(E) -> OE,
Helper to transform the input of a filter Read more