[−][src]Trait kmedoids::safeadd::SafeAdd
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
pub fn safe_add(self, o: Self) -> Self
[src]
The return a + b
addition operation
pub fn safe_inc(&mut self, o: Self)
[src]
The a += b
increment operation