Trait rustc_unicode::str::UnicodeStr [] [src]

pub trait UnicodeStr {
    fn graphemes<'a>(&'a self, is_extended: bool) -> Graphemes<'a>;
    fn grapheme_indices<'a>(&'a self, is_extended: bool) -> GraphemeIndices<'a>;
    fn words<'a>(&'a self) -> Words<'a>;
    fn split_whitespace<'a>(&'a self) -> SplitWhitespace<'a>;
    fn is_whitespace(&self) -> bool;
    fn is_alphanumeric(&self) -> bool;
    fn width(&self, is_cjk: bool) -> usize;
    fn trim<'a>(&'a self) -> &'a str;
    fn trim_left<'a>(&'a self) -> &'a str;
    fn trim_right<'a>(&'a self) -> &'a str;
}
Unstable

Methods for Unicode string slices

Required Methods

fn graphemes<'a>(&'a self, is_extended: bool) -> Graphemes<'a>

Unstable

fn grapheme_indices<'a>(&'a self, is_extended: bool) -> GraphemeIndices<'a>

Unstable

fn words<'a>(&'a self) -> Words<'a>

Unstable

fn split_whitespace<'a>(&'a self) -> SplitWhitespace<'a>

Unstable

fn is_whitespace(&self) -> bool

Unstable

fn is_alphanumeric(&self) -> bool

Unstable

fn width(&self, is_cjk: bool) -> usize

Unstable

fn trim<'a>(&'a self) -> &'a str

Unstable

fn trim_left<'a>(&'a self) -> &'a str

Unstable

fn trim_right<'a>(&'a self) -> &'a str

Unstable

Implementors