Struct std::str::MatchesIndexIterator

pub struct MatchesIndexIterator<'self> {
    priv haystack: &'self str,
    priv needle: &'self str,
    priv position: uint,
}

An iterator over the start and end indices of the matches of a substring within a larger string

Trait Implementations

impl<'self> Clone for MatchesIndexIterator<'self>

fn clone(&self) -> MatchesIndexIterator<'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<(uint, uint)> for MatchesIndexIterator<'self>

fn next(&mut self) -> Option<(uint, uint)>

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