Struct filters::ops::failable::IntoFailable
[−]
[src]
#[must_use = "filters are lazy and do nothing unless consumed"]pub struct IntoFailable<F>(_);
Methods
impl<F> IntoFailable<F>
[src]
pub fn new(a: F) -> IntoFailable<F>
[src]
Trait Implementations
impl<F: Clone> Clone for IntoFailable<F>
[src]
fn clone(&self) -> IntoFailable<F>
[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<F, N> FailableFilter<N> for IntoFailable<F> where
F: Filter<N>,
[src]
F: Filter<N>,
type Error = ()
fn filter(&self, e: &N) -> Result<bool, Self::Error>
[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> + Sized,
[src]
Self: Sized,
F: IntoFailableFilter<N> + 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> + Sized,
[src]
Self: Sized,
F: IntoFailableFilter<N> + 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> + Sized,
F2: IntoFailableFilter<N> + Sized,
[src]
self,
other: F,
other2: F2
) -> FailableOr<Self, FailableOr<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFailableFilter<N> + Sized,
F2: IntoFailableFilter<N> + 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> + Sized,
[src]
Self: Sized,
F: IntoFailableFilter<N> + 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> + Sized,
F2: IntoFailableFilter<N> + Sized,
[src]
self,
other: F,
other2: F2
) -> FailableAnd<Self, FailableAnd<F::IntoFilt, F2::IntoFilt>> where
Self: Sized,
F: IntoFailableFilter<N> + Sized,
F2: IntoFailableFilter<N> + 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> + Sized,
[src]
Self: Sized,
F: IntoFailableFilter<N> + 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, OE> where
Self: Sized,
M: Fn(Self::Error) -> OE,
[src]
Self: Sized,
M: Fn(Self::Error) -> OE,
Helper to transform the input of a filter Read more
Auto Trait Implementations
impl<F> Send for IntoFailable<F> where
F: Send,
F: Send,
impl<F> Sync for IntoFailable<F> where
F: Sync,
F: Sync,