Skip to main content

Filter

Trait Filter 

Source
pub trait Filter<T: ?Sized>: FilterValue {
    // Required method
    fn matches(&self, item: &T) -> bool;
}
Expand description

Types usable as a filter

Required Methods§

Source

fn matches(&self, item: &T) -> bool

Returns true if the given item matches this filter

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.

Implementors§