pub trait CheckedSum<T> {
// Required method
fn checked_sum(self) -> Option<T>;
}Expand description
Iterator extension trait for summing numbers with overflow checking.
Required Methods§
Sourcefn checked_sum(self) -> Option<T>
fn checked_sum(self) -> Option<T>
Adds an iterator of numbers checking for overflow, returns None if
overflow occurred.