pub trait SimplContainsTypewhere
Self: SimpleMatch,{
// Required methods
fn contains_type(&self, char_type: CharType<'_>) -> bool;
fn contains_types(&self, char_types: &[CharType<'_>]) -> bool;
fn starts_with_type(&self, char_type: CharType<'_>) -> bool;
fn starts_with_types(&self, char_types: &[CharType<'_>]) -> bool;
fn ends_with_type(&self, char_type: CharType<'_>) -> bool;
fn ends_with_types(&self, char_types: &[CharType<'_>]) -> bool;
}
Expand description
Test if character set (CharType) is in the string
Required Methods§
Sourcefn contains_type(&self, char_type: CharType<'_>) -> bool
fn contains_type(&self, char_type: CharType<'_>) -> bool
contains characters in the specified set
Sourcefn contains_types(&self, char_types: &[CharType<'_>]) -> bool
fn contains_types(&self, char_types: &[CharType<'_>]) -> bool
contains characters in the specified sets
Sourcefn starts_with_type(&self, char_type: CharType<'_>) -> bool
fn starts_with_type(&self, char_type: CharType<'_>) -> bool
starts with one or more characters in the specified set
Sourcefn starts_with_types(&self, char_types: &[CharType<'_>]) -> bool
fn starts_with_types(&self, char_types: &[CharType<'_>]) -> bool
starts with one or more characters in the specified set
Sourcefn ends_with_type(&self, char_type: CharType<'_>) -> bool
fn ends_with_type(&self, char_type: CharType<'_>) -> bool
ends with one or more characters in the specified sets
Sourcefn ends_with_types(&self, char_types: &[CharType<'_>]) -> bool
fn ends_with_types(&self, char_types: &[CharType<'_>]) -> bool
ends with one or more characters in the specified sets
Implementations on Foreign Types§
Source§impl SimplContainsType for str
Implement character-set matching on &str/String
impl SimplContainsType for str
Implement character-set matching on &str/String
Source§fn starts_with_type(&self, char_type: CharType<'_>) -> bool
fn starts_with_type(&self, char_type: CharType<'_>) -> bool
starts with one or more characters in the specified set
Source§fn starts_with_types(&self, char_types: &[CharType<'_>]) -> bool
fn starts_with_types(&self, char_types: &[CharType<'_>]) -> bool
starts with one or more characters in the specified set
Source§fn ends_with_type(&self, char_type: CharType<'_>) -> bool
fn ends_with_type(&self, char_type: CharType<'_>) -> bool
ends with one or more characters in the specified sets
Source§fn ends_with_types(&self, char_types: &[CharType<'_>]) -> bool
fn ends_with_types(&self, char_types: &[CharType<'_>]) -> bool
ends with one or more characters in the specified sets