pub trait GCD {
    fn gcd(self, other: Self) -> Self;
}
Expand description

This is a helper trait to find gcd of two numbers

Examples

use lemonmath::helper::GCD;
 
let x = (2, 4);

assert_eq!(x.0.gcd(x.1), 2); 

Required methods

Implementations on Foreign Types

Implementors