Trait string_patterns::CharGroupMatch
source · pub trait CharGroupMatch {
// Required methods
fn has_digits(&self) -> bool;
fn has_alphanumeric(&self) -> bool;
fn has_alphabetic(&self) -> bool;
}
Expand description
Methods to validate strings with character classes
Required Methods§
sourcefn has_digits(&self) -> bool
fn has_digits(&self) -> bool
Does the string contain any digits
sourcefn has_alphanumeric(&self) -> bool
fn has_alphanumeric(&self) -> bool
Does the string contain any alphanumeric characters including those from non-Latin alphabets
sourcefn has_alphabetic(&self) -> bool
fn has_alphabetic(&self) -> bool
Does the string contain any letters including those from non-Latin alphabets, but excluding digits