pub trait Gcd<Rhs = Self>: Sized {
type Output;
// Required methods
fn gcd(&self, rhs: &Rhs) -> Self::Output;
fn gcd_vartime(&self, rhs: &Rhs) -> Self::Output;
}
Expand description
Compute the greatest common divisor of two integers.
Required Associated Types§
Required Methods§
sourcefn gcd_vartime(&self, rhs: &Rhs) -> Self::Output
fn gcd_vartime(&self, rhs: &Rhs) -> Self::Output
Compute the greatest common divisor of self
and rhs
in variable time.
Object Safety§
This trait is not object safe.