Trait SimplContainsType

Source
pub trait SimplContainsType
where 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§

Source

fn contains_type(&self, char_type: CharType<'_>) -> bool

contains characters in the specified set

Source

fn contains_types(&self, char_types: &[CharType<'_>]) -> bool

contains characters in the specified sets

Source

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

starts with one or more characters in the specified set

Source

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

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

Source§

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

starts with one or more characters in the specified set

Source§

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

ends with one or more characters in the specified sets

Source§

fn contains_type(&self, char_type: CharType<'_>) -> bool

Source§

fn contains_types(&self, char_types: &[CharType<'_>]) -> bool

Implementors§