Trait string_patterns::pattern_match::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>;
// Provided methods
fn pattern_matches_ci(&self, pattern: &str) -> Vec<bool> { ... }
fn pattern_matches_cs(&self, pattern: &str) -> Vec<bool> { ... }
}
Expand description
Pattern methods for arrays or vectors only, return vectors of booleans matching each input string
Required Methods§
Provided Methods§
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]
Multiple match methods for arrays or vectors of strings