Skip to main content

FilterExt

Trait FilterExt 

Source
pub trait FilterExt:
    Filter
    + Sized
    + Clone {
    // Provided methods
    fn and<F: Filter + Clone>(self, other: F) -> And<Self, F> { ... }
    fn or<F: Filter + Clone>(self, other: F) -> Or<Self, F> { ... }
    fn not(self) -> Not<Self> { ... }
}
Expand description

Extension methods for composing Filter values.

Automatically implemented for every type that implements Filter.

Provided Methods§

Source

fn and<F: Filter + Clone>(self, other: F) -> And<Self, F>

Passes only when both self and other match.

Source

fn or<F: Filter + Clone>(self, other: F) -> Or<Self, F>

Passes when self or other (or both) match.

Source

fn not(self) -> Not<Self>

Inverts this filter.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Filter + Clone> FilterExt for F