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

Pattern that can be matched to string.

Required methods

Returns true if given string matches the pattern.

Implementors