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.
macro_rules! ring_sum {
($type:ty $(, ($type_param:ty, $param_name:ty))?) => { ... };
}Given a struct which implements Add implement Sum.
Sum is implemented by just doing a reduce on the iterator.