pub trait Matcher<V>:
DynClone
+ Debug
+ Send
+ Sync {
// Required method
fn run(&self, value: &V) -> bool;
}Expand description
A Matcher is a type that contains a “run” method which returns true/false if value V
matches a filter.
Required Methods§
Implementations on Foreign Types§
Source§impl<V> Matcher<V> for bool
Implementing Matcher for bool allows a Box::new(true|false) convenience.
impl<V> Matcher<V> for bool
Implementing Matcher for bool allows a Box::new(true|false) convenience.