pub trait StrExt: AsRef<str> {
    fn utf8chars(&self) -> Utf8Chars<'_> ;
    fn utf16chars(&self) -> Utf16Chars<'_> ;
    fn utf8char_indices(&self) -> Utf8CharIndices<'_> ;
    fn utf16char_indices(&self) -> Utf16CharIndices<'_> ;
}
Expand description

Adds .utf8chars() and .utf16chars() iterator constructors to &str.

Required Methods

Equivalent to .chars() but produces Utf8Chars.

Equivalent to .chars() but produces Utf16Chars.

Equivalent to .char_indices() but produces Utf8Chars.

Equivalent to .char_indices() but produces Utf16Chars.

Implementations on Foreign Types

Implementors