pub trait EucRing:
Ring
+ EucRingOps
+ DivAssign
+ for<'a> DivAssign<&'a Self>
+ RemAssign
+ for<'a> RemAssign<&'a Self>where
for<'a> &'a Self: EucRingOps<Self>,{
// Provided methods
fn divides(&self, y: &Self) -> bool { ... }
fn gcd(x: &Self, y: &Self) -> Self { ... }
fn gcdx(x: &Self, y: &Self) -> (Self, Self, Self) { ... }
fn lcm(x: &Self, y: &Self) -> Self { ... }
}Provided Methods§
fn divides(&self, y: &Self) -> bool
fn gcd(x: &Self, y: &Self) -> Self
fn gcdx(x: &Self, y: &Self) -> (Self, Self, Self)
fn lcm(x: &Self, y: &Self) -> Self
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.