pub trait ItertoolsNum: Iterator {
    fn cumsum<S>(self) -> Cumsum<Self, S> 
    where
        Self: Sized,
        S: Add<Self::Item, Output = S>,
        S: Zero
, { ... } }
Expand description

Extension trait for iterators: extra adaptors and methods for numerical iterators

Provided Methods§

Return an iterator that produces the sequence of cumulative sums of the base iterator. The type of the sum is S.

Implementors§