[][src]Trait encode_unicode::StrExt

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

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

Required methods

Important traits for Utf8Chars<'a>
fn utf8chars(&self) -> Utf8Chars

Equivalent to .chars() but produces Utf8Chars.

Important traits for Utf16Chars<'a>
fn utf16chars(&self) -> Utf16Chars

Equivalent to .chars() but produces Utf16Chars.

Important traits for Utf8CharIndices<'a>
fn utf8char_indices(&self) -> Utf8CharIndices

Equivalent to .char_indices() but produces Utf8Chars.

Important traits for Utf16CharIndices<'a>
fn utf16char_indices(&self) -> Utf16CharIndices

Equivalent to .char_indices() but produces Utf16Chars.

Loading content...

Implementations on Foreign Types

impl StrExt for str[src]

impl StrExt for AsciiStr[src]

Loading content...

Implementors

Loading content...