Trait 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.

Implementations on Foreign Types§

Source§

impl<T: Matcher> Matcher for LazyLock<T>

Source§

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

Implementors§