Struct traverse::utils::Iterate
[−]
[src]
pub struct Iterate<T, F> { /* fields omitted */ }
An iterator that repeatedly applies a given function, starting from a given seed value.
Trait Implementations
impl<T: Copy, F: Copy> Copy for Iterate<T, F>
[src]
impl<T: Clone, F: Clone> Clone for Iterate<T, F>
[src]
fn clone(&self) -> Iterate<T, F>
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, I> Traversal for Iterate<A, I> where
A: Clone,
I: FnMut(A) -> A,
[src]
A: Clone,
I: FnMut(A) -> A,
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>,