pub trait GcdLcm: Sized {
type Output;
// Required methods
fn gcd(self, rhs: Self) -> Self::Output;
fn gcd_list(values: &[Self]) -> Self::Output;
fn lcm(self, rhs: Self) -> Self::Output;
fn lcm_list(values: &[Self]) -> Self::Output;
fn gcd_lcm(self, rhs: Self) -> (Self::Output, Self::Output);
fn gcd_lcm_list(values: &[Self]) -> (Self::Output, Self::Output);
}Required Associated Types§
Required Methods§
fn gcd(self, rhs: Self) -> Self::Output
fn gcd_list(values: &[Self]) -> Self::Output
fn lcm(self, rhs: Self) -> Self::Output
fn lcm_list(values: &[Self]) -> Self::Output
fn gcd_lcm(self, rhs: Self) -> (Self::Output, Self::Output)
fn gcd_lcm_list(values: &[Self]) -> (Self::Output, Self::Output)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.