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
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.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).