pub trait CheckedSum<A>: Sized {
    fn checked_sum(self) -> Result<A>;
}
Expand description

Extension trait for providing checked Iterator::sum-like functionality.

Required Methods

Iterate over the values of this type, computing a checked sum.

Returns Error::Length on overflow.

Implementors