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