Trait IteratorRefSpec

pub(in ::iter::traits::iterator) trait IteratorRefSpec: Iterator

Helper trait to specialize fold and try_fold for &mut I where I: Sized

Required Methods

fn spec_fold<B, F>(self, init: B, f: F) -> B
where
    F: FnMut(B, Self::Item) -> B,
fn spec_try_fold<B, F, R>(&mut self, init: B, f: F) -> R
where
    F: FnMut(B, Self::Item) -> R,
    R: Try<Output = B>,

Implementors