[][src]Struct libimagentryfilter::builtin::header::field_eq::FieldEq

pub struct FieldEq { /* fields omitted */ }

Check whether certain header field in a entry is equal to a value

Methods

impl FieldEq[src]

pub fn new(path: FieldPath, expected_value: Value) -> FieldEq[src]

Trait Implementations

impl FailableFilter<Entry> for FieldEq[src]

type Error = Error

fn not(self) -> FailableNot<Self>[src]

Helper to invert a filter. Read more

fn or<F>(
    self,
    other: F
) -> FailableOr<Self, <F as IntoFailableFilter<N>>::IntoFilt> where
    F: IntoFailableFilter<N>, 
[src]

Helper to connect two filters via logical OR Read more

fn or_not<F>(
    self,
    other: F
) -> FailableOr<Self, FailableNot<<F as IntoFailableFilter<N>>::IntoFilt>> where
    F: IntoFailableFilter<N>, 
[src]

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 as IntoFailableFilter<N>>::IntoFilt, <F2 as IntoFailableFilter<N>>::IntoFilt>> where
    F: IntoFailableFilter<N>,
    F2: IntoFailableFilter<N>, 
[src]

Helper to connect three filters via logical OR Read more

fn nor<F>(self, other: F) -> FailableNot<FailableOr<Self, F>>[src]

Helper to connect two filters via logical NOR Read more

fn xor<F>(self, other: F) -> FailableXOr<Self, F>[src]

Helper to connect two filters via logical XOR Read more

fn and<F>(
    self,
    other: F
) -> FailableAnd<Self, <F as IntoFailableFilter<N>>::IntoFilt> where
    F: IntoFailableFilter<N>, 
[src]

Helper to connect two filters via logical AND Read more

fn and3<F, F2>(
    self,
    other: F,
    other2: F2
) -> FailableAnd<Self, FailableAnd<<F as IntoFailableFilter<N>>::IntoFilt, <F2 as IntoFailableFilter<N>>::IntoFilt>> where
    F: IntoFailableFilter<N>,
    F2: IntoFailableFilter<N>, 
[src]

Helper to connect three filters via logical AND Read more

fn and_not<F>(
    self,
    other: F
) -> FailableAnd<Self, FailableNot<<F as IntoFailableFilter<N>>::IntoFilt>> where
    F: IntoFailableFilter<N>, 
[src]

Helper to connect two filters via logical AND and NOT Read more

fn nand<F>(self, other: F) -> FailableNot<FailableAnd<Self, F>>[src]

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
    B: Borrow<O>,
    M: Fn(&T) -> N, 
[src]

Helper to transform the input of a filter Read more

fn map_err<M, OE>(self, map: M) -> FailableMapErr<Self, M, OE> where
    M: Fn(Self::Error) -> OE, 
[src]

Helper to transform the input of a filter Read more

Auto Trait Implementations

impl Send for FieldEq

impl Sync for FieldEq

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<N, I> IntoFailableFilter<N> for I where
    I: FailableFilter<N>, 
[src]

impl<I, E, T> FailableFilter<I> for T where
    T: Fn(&I) -> Result<bool, E>, 
[src]

type Error = E

fn not(self) -> FailableNot<Self>[src]

Helper to invert a filter. Read more

fn or<F>(
    self,
    other: F
) -> FailableOr<Self, <F as IntoFailableFilter<N>>::IntoFilt> where
    F: IntoFailableFilter<N>, 
[src]

Helper to connect two filters via logical OR Read more

fn or_not<F>(
    self,
    other: F
) -> FailableOr<Self, FailableNot<<F as IntoFailableFilter<N>>::IntoFilt>> where
    F: IntoFailableFilter<N>, 
[src]

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 as IntoFailableFilter<N>>::IntoFilt, <F2 as IntoFailableFilter<N>>::IntoFilt>> where
    F: IntoFailableFilter<N>,
    F2: IntoFailableFilter<N>, 
[src]

Helper to connect three filters via logical OR Read more

fn nor<F>(self, other: F) -> FailableNot<FailableOr<Self, F>>[src]

Helper to connect two filters via logical NOR Read more

fn xor<F>(self, other: F) -> FailableXOr<Self, F>[src]

Helper to connect two filters via logical XOR Read more

fn and<F>(
    self,
    other: F
) -> FailableAnd<Self, <F as IntoFailableFilter<N>>::IntoFilt> where
    F: IntoFailableFilter<N>, 
[src]

Helper to connect two filters via logical AND Read more

fn and3<F, F2>(
    self,
    other: F,
    other2: F2
) -> FailableAnd<Self, FailableAnd<<F as IntoFailableFilter<N>>::IntoFilt, <F2 as IntoFailableFilter<N>>::IntoFilt>> where
    F: IntoFailableFilter<N>,
    F2: IntoFailableFilter<N>, 
[src]

Helper to connect three filters via logical AND Read more

fn and_not<F>(
    self,
    other: F
) -> FailableAnd<Self, FailableNot<<F as IntoFailableFilter<N>>::IntoFilt>> where
    F: IntoFailableFilter<N>, 
[src]

Helper to connect two filters via logical AND and NOT Read more

fn nand<F>(self, other: F) -> FailableNot<FailableAnd<Self, F>>[src]

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
    B: Borrow<O>,
    M: Fn(&T) -> N, 
[src]

Helper to transform the input of a filter Read more

fn map_err<M, OE>(self, map: M) -> FailableMapErr<Self, M, OE> where
    M: Fn(Self::Error) -> OE, 
[src]

Helper to transform the input of a filter Read more