Skip to main content

Matcher

Trait Matcher 

Source
pub trait Matcher<Item, Input> {
    // Required method
    fn matches(&self, item: &Item, input: &Input) -> bool;
}
Expand description

Selects table items for an input.

Required Methods§

Source

fn matches(&self, item: &Item, input: &Input) -> bool

Returns true when item can handle input.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§