Trait string_patterns::PatternMatches
source · 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§
sourcefn pattern_matches_result(
&self,
pattern: &str,
case_insensitive: bool
) -> Result<Vec<bool>, Error>
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
sourcefn pattern_matches(&self, pattern: &str, case_insensitive: bool) -> Vec<bool>
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
sourcefn pattern_matches_ci(&self, pattern: &str) -> Vec<bool>
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
sourcefn pattern_matches_cs(&self, pattern: &str) -> Vec<bool>
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]
impl PatternMatches for [String]
source§fn pattern_matches_result(
&self,
pattern: &str,
case_insensitive: bool
) -> Result<Vec<bool>, Error>
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>
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