Primitive Type str

String manipulation

For more details, see std::str

Trait Implementations

impl<'a> Clone for &'a str

fn clone(&self) -> &'a str

Return a shallow copy of the slice.

fn clone_from(&mut self, source: &Self)

impl<'a> Repr<Slice<u8>> for &'a str

fn repr(&self) -> T

impl<'a> Ord for &'a str

fn cmp(&self, other: &&'a str) -> Ordering

impl<'a> PartialEq for &'a str

fn eq(&self, other: &&'a str) -> bool

fn ne(&self, other: &&'a str) -> bool

impl<'a> Eq for &'a str

impl<'a> PartialOrd for &'a str

fn lt(&self, other: &&'a str) -> bool

fn le(&self, other: &Self) -> bool

fn gt(&self, other: &Self) -> bool

fn ge(&self, other: &Self) -> bool

impl<'a, S: Str> Equiv<S> for &'a str

fn equiv(&self, other: &S) -> bool

impl<'a> Str for &'a str

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

impl<'a> Collection for &'a str

fn len(&self) -> uint

fn is_empty(&self) -> bool

impl<'a> StrSlice<'a> for &'a str

fn contains<'a>(&self, needle: &'a str) -> bool

fn contains_char(&self, needle: char) -> bool

fn chars(&self) -> Chars<'a>

fn bytes(&self) -> Bytes<'a>

fn char_indices(&self) -> CharOffsets<'a>

fn split<Sep: CharEq>(&self, sep: Sep) -> CharSplits<'a, Sep>

fn splitn<Sep: CharEq>(&self, sep: Sep, count: uint) -> CharSplitsN<'a, Sep>

fn split_terminator<Sep: CharEq>(&self, sep: Sep) -> CharSplits<'a, Sep>

fn rsplitn<Sep: CharEq>(&self, sep: Sep, count: uint) -> CharSplitsN<'a, Sep>

fn match_indices(&self, sep: &'a str) -> MatchIndices<'a>

fn split_str(&self, sep: &'a str) -> StrSplits<'a>

fn lines(&self) -> CharSplits<'a, char>

fn lines_any(&self) -> AnyLines<'a>

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

fn is_whitespace(&self) -> bool

fn is_alphanumeric(&self) -> bool

fn char_len(&self) -> uint

fn slice(&self, begin: uint, end: uint) -> &'a str

fn slice_from(&self, begin: uint) -> &'a str

fn slice_to(&self, end: uint) -> &'a str

fn slice_chars(&self, begin: uint, end: uint) -> &'a str

fn starts_with<'a>(&self, needle: &'a str) -> bool

fn ends_with(&self, needle: &str) -> bool

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

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

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

fn trim_chars<C: CharEq>(&self, to_trim: C) -> &'a str

fn trim_left_chars<C: CharEq>(&self, to_trim: C) -> &'a str

fn trim_right_chars<C: CharEq>(&self, to_trim: C) -> &'a str

fn is_char_boundary(&self, index: uint) -> bool

fn char_range_at(&self, i: uint) -> CharRange

fn char_range_at_reverse(&self, start: uint) -> CharRange

fn char_at(&self, i: uint) -> char

fn char_at_reverse(&self, i: uint) -> char

fn as_bytes(&self) -> &'a [u8]

fn find<C: CharEq>(&self, search: C) -> Option<uint>

fn rfind<C: CharEq>(&self, search: C) -> Option<uint>

fn find_str(&self, needle: &str) -> Option<uint>

fn slice_shift_char(&self) -> (Option<char>, &'a str)

fn subslice_offset(&self, inner: &str) -> uint

fn as_ptr(&self) -> *u8

impl<'a> Default for &'a str

fn default() -> &'a str

impl<'a> Show for &'a str

fn fmt(&self, f: &mut Formatter) -> Result