Trait unicode::str::UnicodeStrUnstable [-] [+] [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 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;
}

Methods for Unicode string slices

Required Methods

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 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

Implementors