Trait Gcd
Source pub trait Gcd<T = Self> {
type Output;
// Required method
fn gcd(&self, other: T) -> Self::Output;
}
Expand description
Is implemented by Z instances to calculate the gcd
Outputs the greatest common divisor (gcd) of the two given values
with gcd(a, 0) = |a|.
Parameters:
other: specifies one of the values of which the gcd is computed
Returns the greatest common divisor of self and other.