Struct std::str::StrSplitIterator

pub struct StrSplitIterator<'self> {
    priv it: MatchesIndexIterator<'self>,
    priv last_end: uint,
    priv finished: bool,
}

An iterator over the substrings of a string separated by a given search string

Trait Implementations

impl<'self> Clone for StrSplitIterator<'self>

fn clone(&self) -> StrSplitIterator<'self>

Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.

impl<'self> Iterator<&'self str> for StrSplitIterator<'self>

fn next(&mut self) -> Option<&'self str>

Advance the iterator and return the next value. Return None when the end is reached.