Trait string_patterns::SimpleMatch
source · pub trait SimpleMatch {
// Required methods
fn starts_with_ci(&self, pattern: &str) -> bool;
fn starts_with_ci_alphanum(&self, pattern: &str) -> bool;
fn ends_with_ci(&self, pattern: &str) -> bool;
fn ends_with_ci_alphanum(&self, pattern: &str) -> bool;
fn contains_ci(&self, pattern: &str) -> bool;
fn contains_ci_alphanum(&self, pattern: &str) -> bool;
}
Expand description
Regex-free matcher methods for common use cases
Required Methods§
sourcefn starts_with_ci(&self, pattern: &str) -> bool
fn starts_with_ci(&self, pattern: &str) -> bool
Starts with a case-insensitive alphanumeric sequence
sourcefn starts_with_ci_alphanum(&self, pattern: &str) -> bool
fn starts_with_ci_alphanum(&self, pattern: &str) -> bool
Starts with a case-insensitive alphanumeric sequence
sourcefn ends_with_ci(&self, pattern: &str) -> bool
fn ends_with_ci(&self, pattern: &str) -> bool
Ends with a case-insensitive alphanumeric sequence
sourcefn ends_with_ci_alphanum(&self, pattern: &str) -> bool
fn ends_with_ci_alphanum(&self, pattern: &str) -> bool
Ends with a case-insensitive alphanumeric sequence
sourcefn contains_ci(&self, pattern: &str) -> bool
fn contains_ci(&self, pattern: &str) -> bool
Contains a case-insensitive alphanumeric sequence
sourcefn contains_ci_alphanum(&self, pattern: &str) -> bool
fn contains_ci_alphanum(&self, pattern: &str) -> bool
Contains a case-insensitive alphanumeric sequence
Implementations on Foreign Types§
source§impl SimpleMatch for str
impl SimpleMatch for str
source§fn starts_with_ci(&self, pattern: &str) -> bool
fn starts_with_ci(&self, pattern: &str) -> bool
Starts with a case-insensitive sequence
source§fn starts_with_ci_alphanum(&self, pattern: &str) -> bool
fn starts_with_ci_alphanum(&self, pattern: &str) -> bool
Starts with a case-insensitive alphanumeric sequence
source§fn ends_with_ci(&self, pattern: &str) -> bool
fn ends_with_ci(&self, pattern: &str) -> bool
Ends with a case-insensitive sequence
source§fn ends_with_ci_alphanum(&self, pattern: &str) -> bool
fn ends_with_ci_alphanum(&self, pattern: &str) -> bool
Ends with a case-insensitive alphanumeric sequence
source§fn contains_ci(&self, pattern: &str) -> bool
fn contains_ci(&self, pattern: &str) -> bool
Contains a case-insensitive sequence
source§fn contains_ci_alphanum(&self, pattern: &str) -> bool
fn contains_ci_alphanum(&self, pattern: &str) -> bool
Contains a case-insensitive alphanumeric sequence