ring_sum

Macro ring_sum 

Source
macro_rules! ring_sum {
    ($type:ty $(, ($type_param:ty, $param_name:ty))?) => { ... };
}
Expand description

Given a struct which implements Add implement Sum.

Sum is implemented by just doing a reduce on the iterator.