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

Pattern that can be matched to string.

Required Methods§

source

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

Returns true if given string matches the pattern.

Implementors§