Trait Matches

Source
pub trait Matches<T> {
    // Required method
    fn matches(&self, other: &T) -> bool;
}
Expand description

A trait expressing that two items of a type are (potentially fuzzy) matches. We need a custom trait instead of relying on PartialEq because we allow fuzzy matches.

Required Methods§

Source

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

Check if two items are a match

Implementors§