Trait cgats::IterSum

source ·
pub trait IterSum<'a, T: 'a + PartialSum<'a, T>>: Sized + IntoIterator<Item = &'a T> {
    // Provided method
    fn iter_sum(self) -> Option<T> { ... }
}
Expand description

Front end method for the PartialSum trait

Provided Methods§

source

fn iter_sum(self) -> Option<T>

Try to sum the values in the iterator

Implementors§

source§

impl<'a, T, I> IterSum<'a, T> for Iwhere I: Sized + IntoIterator<Item = &'a T>, T: PartialSum<'a, T>,