pub trait IsFilter<T> {
// Required method
fn is_allowed(&self, x: &T) -> bool;
}Expand description
IsFilter trait used for filters
Required Methods§
Sourcefn is_allowed(&self, x: &T) -> bool
fn is_allowed(&self, x: &T) -> bool
Should return true if a it passes the filter, otherwise false
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".