Struct Update
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Update<I, F> { /* private fields */ }
An iterator adapter to apply a mutating function to each element before yielding it.
See .update() for more information.
Trait Implementations
impl<I, F> Debug for Update<I, F>
where
I: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, F> DoubleEndedIterator for Update<I, F>
where
I: DoubleEndedIterator,
F: FnMut(&mut I::Item),
fn next_back(&mut self) -> Option<Self::Item>
impl<I, F> ExactSizeIterator for Update<I, F>
where
I: ExactSizeIterator,
F: FnMut(&mut I::Item),
impl<I, F> FusedIterator for Update<I, F>
where
I: FusedIterator,
F: FnMut(&mut I::Item),
impl<I, F> Iterator for Update<I, F>
where
I: Iterator,
F: FnMut(&mut I::Item),
type Item = <I as Iterator>::Item;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn fold<Acc, G>(self, init: Acc, g: G) -> Acc where G: FnMut(Acc, Self::Item) -> Acc,fn collect<C>(self) -> C where C: FromIterator<Self::Item>,
impl<I: Clone, F: Clone> Clone for Update<I, F>
fn clone(&self) -> Self