pub trait PatternMatches {
    // Required methods
    fn pattern_matches_result(
        &self,
        pattern: &str,
        case_insensitive: bool
    ) -> Result<Vec<bool>, Error>;
    fn pattern_matches(
        &self,
        pattern: &str,
        case_insensitive: bool
    ) -> Vec<bool>;
    fn pattern_matches_ci(&self, pattern: &str) -> Vec<bool>;
    fn pattern_matches_cs(&self, pattern: &str) -> Vec<bool>;
}

Required Methods§

source

fn pattern_matches_result( &self, pattern: &str, case_insensitive: bool ) -> Result<Vec<bool>, Error>

Returns result with a vector of boolean matches for an array or vector of strings with case-insensitive flag or an error if the regex does not compile

source

fn pattern_matches(&self, pattern: &str, case_insensitive: bool) -> Vec<bool>

Returns vector of boolean matches for an array or vector of strings with case-insensitive flag

source

fn pattern_matches_ci(&self, pattern: &str) -> Vec<bool>

Returns vector of boolean matches for an array or vector of strings in case-insensitive mode

source

fn pattern_matches_cs(&self, pattern: &str) -> Vec<bool>

Returns vector of boolean matches for an array or vector of strings in case-sensitive mode

Implementations on Foreign Types§

source§

impl PatternMatches for [String]

source§

fn pattern_matches_result( &self, pattern: &str, case_insensitive: bool ) -> Result<Vec<bool>, Error>

Returns an Ok result with a vector of boolean matches for an array or vector of strings with a case-insensitive flag and an error only if the regex fails to compile.

source§

fn pattern_matches(&self, pattern: &str, case_insensitive: bool) -> Vec<bool>

Returns vector of boolean matches for an array or vector of strings with case-insensitive flag

source§

fn pattern_matches_ci(&self, pattern: &str) -> Vec<bool>

Returns vector of boolean matches for an array or vector of strings in case-insensitive mode

source§

fn pattern_matches_cs(&self, pattern: &str) -> Vec<bool>

Returns vector of boolean matches for an array or vector of strings in case-sensitive mode

Implementors§