Struct std::iter::Repeat[src]
pub struct Repeat<A> {
// some fields omitted
}An iterator that repeats an element endlessly
pub struct Repeat<A> {
// some fields omitted
}An iterator that repeats an element endlessly
impl<A: Clone> Repeat<A>impl<A: Clone> Iterator<A> for Repeat<A>fn next<A: Clone>(&mut self) -> Option<A>fn size_hint<A: Clone>(&self) -> (uint, Option<uint>)fn size_hint<A: Clone>(&self) -> (uint, Option<uint>)fn chain<U: Iterator<A>>(self, U) -> Chain<Repeat<A>, U>fn zip<B, U: Iterator<B>>(self, U) -> Zip<Repeat<A>, U>fn map<B>(self, |A|: 'r -> B) -> Map<'r, A, B, Repeat<A>>fn filter<A: Clone>(self, |&A|: 'r -> bool) -> Filter<'r, A, Repeat<A>>fn filter_map<B>(self, |A|: 'r -> Option<B>) -> FilterMap<'r, A, B, Repeat<A>>fn enumerate<A: Clone>(self) -> Enumerate<Repeat<A>>fn peekable<A: Clone>(self) -> Peekable<A, Repeat<A>>fn skip_while<A: Clone>(self, |&A|: 'r -> bool) -> SkipWhile<'r, A, Repeat<A>>fn take_while<A: Clone>(self, |&A|: 'r -> bool) -> TakeWhile<'r, A, Repeat<A>>fn skip<A: Clone>(self, uint) -> Skip<Repeat<A>>fn take<A: Clone>(self, uint) -> Take<Repeat<A>>fn scan<St, B>(self, St, |&mut St, A|: 'r -> Option<B>) -> Scan<'r, A, B, Repeat<A>, St>fn flat_map<B, U: Iterator<B>>(self, |A|: 'r -> U) -> FlatMap<'r, A, Repeat<A>, U>fn fuse<A: Clone>(self) -> Fuse<Repeat<A>>fn inspect<A: Clone>(self, |&A|: 'r) -> Inspect<'r, A, Repeat<A>>fn by_ref<A: Clone>(&'r mut self) -> ByRef<'r, Repeat<A>>fn advance<A: Clone>(&mut self, |A| -> bool) -> boolfn collect<B: FromIterator<A>>(&mut self) -> Bfn nth<A: Clone>(&mut self, uint) -> Option<A>fn last<A: Clone>(&mut self) -> Option<A>fn fold<B>(&mut self, B, |B, A| -> B) -> Bfn count<A: Clone>(&mut self) -> uintfn all<A: Clone>(&mut self, |A| -> bool) -> boolfn any<A: Clone>(&mut self, |A| -> bool) -> boolfn find<A: Clone>(&mut self, |&A| -> bool) -> Option<A>fn position<A: Clone>(&mut self, |A| -> bool) -> Option<uint>fn max_by<B: Ord>(&mut self, |&A| -> B) -> Option<A>fn min_by<B: Ord>(&mut self, |&A| -> B) -> Option<A>impl<A: Clone> DoubleEndedIterator<A> for Repeat<A>impl<A: Clone> RandomAccessIterator<A> for Repeat<A>impl<A: Clone> Clone for Repeat<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).