Struct traverse::utils::Repeat
[−]
[src]
pub struct Repeat<A> { /* fields omitted */ }
An iterator that repeats an element endlessly
Trait Implementations
impl<A: Copy> Copy for Repeat<A>
[src]
impl<A: Clone> Clone for Repeat<A>
[src]
fn clone(&self) -> Repeat<A>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<A: Clone> Traversal for Repeat<A>
[src]
type Item = A
fn foreach<F>(self, f: F) where
F: FnMut(A) -> bool,
F: FnMut(A) -> bool,
Run this Iterator using the provided closure. Read more
fn run<F>(self, f: F) where
F: FnMut(Self::Item),
F: FnMut(Self::Item),
Run this Iterator using the provided closure. Read more
fn size_hint(&self) -> (usize, Option<usize>)
fn map<F, O>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Item) -> O,
F: FnMut(Self::Item) -> O,
fn filter<F>(self, pred: F) -> Filter<Self, F> where
F: FnMut(&Self::Item) -> bool,
F: FnMut(&Self::Item) -> bool,
fn filter_map<F, O>(self, pred: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<O>,
F: FnMut(Self::Item) -> Option<O>,
fn enumerate(self) -> Enumerate<Self>
fn skip(self, n: usize) -> Skip<Self>
fn take(self, n: usize) -> Take<Self>
fn skip_while<F>(self, pred: F) -> SkipWhile<Self, F> where
F: FnMut(&Self::Item) -> bool,
F: FnMut(&Self::Item) -> bool,
fn take_while<F>(self, pred: F) -> TakeWhile<Self, F> where
F: FnMut(&Self::Item) -> bool,
F: FnMut(&Self::Item) -> bool,
fn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnMut(&Self::Item),
F: FnMut(&Self::Item),
fn flat_map<A, U, F>(self, f: F) -> FlatMap<Self, F> where
U: Traversal<Item = A>,
F: FnMut(Self::Item) -> U,
U: Traversal<Item = A>,
F: FnMut(Self::Item) -> U,
fn chain<O>(self, other: O) -> Chain<Self, O> where
O: Traversal<Item = Self::Item>,
O: Traversal<Item = Self::Item>,
fn count(self) -> usize
fn cloned(self) -> Cloned<Self>
fn collect<D>(self) -> D where
D: FromTraversal<Self::Item>,
D: FromTraversal<Self::Item>,