Struct std::str::CharSplitNIterator

pub struct CharSplitNIterator<'self, Sep> {
    priv iter: CharSplitIterator<'self, Sep>,
    priv count: uint,
    priv invert: bool,
}

An iterator over the substrings of a string, separated by sep, splitting at most count times.

Trait Implementations

impl<'self, Sep: Clone> Clone for CharSplitNIterator<'self, Sep>

fn clone(&self) -> CharSplitNIterator<'self, Sep>

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, Sep: CharEq> Iterator<&'self str> for CharSplitNIterator<'self, Sep>

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

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