stringmatch

Trait Needle

Source
pub trait Needle {
    // Required method
    fn is_match(&self, haystack: &str) -> bool;
}

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl Needle for &str

Source§

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

Source§

impl Needle for Regex

Source§

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

Source§

impl Needle for String

Source§

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

Implementors§

Source§

impl Needle for StringMatch

Source§

impl<F> Needle for F
where F: Fn(&str) -> bool,