num::integer

Function gcd

Source
pub fn gcd<T>(x: T, y: T) -> T
where T: Integer,
Expand description

Calculates the Greatest Common Divisor (GCD) of the number and other. The result is always positive.