pub trait Filter {
// Required method
fn matches<E>(&self, evt: E) -> bool
where E: ToEvent;
// Provided methods
fn and_when<U>(self, other: U) -> And<Self, U>
where Self: Sized { ... }
fn or_when<U>(self, other: U) -> Or<Self, U>
where Self: Sized { ... }
}Expand description
A filter over Events.
Filters can be evaluated with a call to Filter::matches.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.