pub trait PartialSum<'a, T>: 'a + PartialAdd<Self, Output = T> {
    fn partial_sum<I: IntoIterator<Item = &'a Self>>(
        iter: I
    ) -> Option<Self::Output>; }
Expand description

Trait to sum an iterator of values that may or may not be compatible

Required Methods

Try to sum the values in the iterator

Implementors