Trait kmedoids::safeadd::SafeAdd [−][src]
Add without overflow, for both integer and float types.
This is pre-generated for standard numerical types such as i64 and f64.
You only need to touch this if you want to extend this to additional numerical types.
Required methods
fn safe_add(self, o: Self) -> Self
[src]
The return a + b
addition operation
fn safe_inc(&mut self, o: Self)
[src]
The a += b
increment operation