Struct PadUsing
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct PadUsing<I, F> { /* private fields */ }
An iterator adaptor that pads a sequence to a minimum length by filling missing elements using a closure.
Iterator element type is I::Item.
See .pad_using() for more information.
Trait Implementations
impl<I, F> Debug for PadUsing<I, F>
where
I: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, F> DoubleEndedIterator for PadUsing<I, F>
where
I: DoubleEndedIterator + ExactSizeIterator,
F: FnMut(usize) -> I::Item,
fn next_back(&mut self) -> Option<Self::Item>
impl<I, F> ExactSizeIterator for PadUsing<I, F>
where
I: ExactSizeIterator,
F: FnMut(usize) -> I::Item,
impl<I, F> FusedIterator for PadUsing<I, F>
where
I: FusedIterator,
F: FnMut(usize) -> I::Item,
impl<I, F> Iterator for PadUsing<I, F>
where
I: Iterator,
F: FnMut(usize) -> I::Item,
type Item = <I as Iterator>::Item;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)
impl<I: Clone, F: Clone> Clone for PadUsing<I, F>
fn clone(&self) -> Self