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

Object Safety§

This trait is not object safe.

Implementors§

source§

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