Struct std::str::MatchIndices[src]
pub struct MatchIndices<'a> {
// some fields omitted
}An iterator over the start and end indices of the matches of a substring within a larger string
pub struct MatchIndices<'a> {
// some fields omitted
}An iterator over the start and end indices of the matches of a substring within a larger string
impl<'a> Iterator<(uint, uint)> for MatchIndices<'a>fn next<'a>(&mut self) -> Option<(uint, uint)>fn size_hint<'a>(&self) -> (uint, Option<uint>)fn chain<U: Iterator<(uint, uint)>>(self, U) -> Chain<MatchIndices<'a>, U>fn zip<B, U: Iterator<B>>(self, U) -> Zip<MatchIndices<'a>, U>fn map<B>(self, |(uint, uint)|: 'r -> B) -> Map<'r, (uint, uint), B, MatchIndices<'a>>fn filter<'a>(self, |&(uint, uint)|: 'r -> bool) -> Filter<'r, (uint, uint), MatchIndices<'a>>fn filter_map<B>(self, |(uint, uint)|: 'r -> Option<B>) -> FilterMap<'r, (uint, uint), B, MatchIndices<'a>>fn enumerate<'a>(self) -> Enumerate<MatchIndices<'a>>fn peekable<'a>(self) -> Peekable<(uint, uint), MatchIndices<'a>>fn skip_while<'a>(self, |&(uint, uint)|: 'r -> bool) -> SkipWhile<'r, (uint, uint), MatchIndices<'a>>fn take_while<'a>(self, |&(uint, uint)|: 'r -> bool) -> TakeWhile<'r, (uint, uint), MatchIndices<'a>>fn skip<'a>(self, uint) -> Skip<MatchIndices<'a>>fn take<'a>(self, uint) -> Take<MatchIndices<'a>>fn scan<St, B>(self, St, |&mut St, (uint, uint)|: 'r -> Option<B>) -> Scan<'r, (uint, uint), B, MatchIndices<'a>, St>fn flat_map<B, U: Iterator<B>>(self, |(uint, uint)|: 'r -> U) -> FlatMap<'r, (uint, uint), MatchIndices<'a>, U>fn fuse<'a>(self) -> Fuse<MatchIndices<'a>>fn inspect<'a>(self, |&(uint, uint)|: 'r) -> Inspect<'r, (uint, uint), MatchIndices<'a>>fn by_ref<'a>(&'r mut self) -> ByRef<'r, MatchIndices<'a>>fn advance<'a>(&mut self, |(uint, uint)| -> bool) -> boolfn collect<B: FromIterator<(uint, uint)>>(&mut self) -> Bfn nth<'a>(&mut self, uint) -> Option<(uint, uint)>fn last<'a>(&mut self) -> Option<(uint, uint)>fn fold<B>(&mut self, B, |B, (uint, uint)| -> B) -> Bfn count<'a>(&mut self) -> uintfn all<'a>(&mut self, |(uint, uint)| -> bool) -> boolfn any<'a>(&mut self, |(uint, uint)| -> bool) -> boolfn find<'a>(&mut self, |&(uint, uint)| -> bool) -> Option<(uint, uint)>fn position<'a>(&mut self, |(uint, uint)| -> bool) -> Option<uint>fn max_by<B: Ord>(&mut self, |&(uint, uint)| -> B) -> Option<(uint, uint)>fn min_by<B: Ord>(&mut self, |&(uint, uint)| -> B) -> Option<(uint, uint)>impl<'a> Clone for MatchIndices<'a>fn clone<'a>(&self) -> MatchIndices<'a>fn clone_from<'a>(&mut self, &MatchIndices<'a>)
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).