Trait garde::rules::pattern::Matcher

source ·
pub trait Matcher: AsStr {
    // Required method
    fn is_match(&self, haystack: &str) -> bool;
}

Required Methods§

source

fn is_match(&self, haystack: &str) -> bool

Returns true if and only if there is a match for the pattern anywhere in the haystack given.

Implementors§