Struct RepeatN
#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct RepeatN<A> { /* private fields */ }
An iterator that produces n repetitions of an element.
See repeat_n() for more information.
Trait Implementations
impl<A> DoubleEndedIterator for RepeatN<A>
where
A: Clone,
fn next_back(&mut self) -> Option<Self::Item>fn rfold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,
impl<A> ExactSizeIterator for RepeatN<A>
where
A: Clone,
impl<A> FusedIterator for RepeatN<A>
where
A: Clone,
impl<A> Iterator for RepeatN<A>
where
A: Clone,
type Item = A;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn fold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,
impl<A: Clone> Clone for RepeatN<A>
fn clone(&self) -> Self
impl<A: Debug> Debug for RepeatN<A>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Clone> PeekingNext for RepeatN<T>
fn peeking_next<F>(&mut self, accept: F) -> Option<Self::Item> where F: FnOnce(&Self::Item) -> bool,