Gcd

Trait Gcd 

Source
pub trait Gcd {
    // Required method
    fn gcd(self, other: Self) -> Self;
}

Required Methods§

Source

fn gcd(self, other: 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.

Implementations on Foreign Types§

Source§

impl Gcd for u8

Source§

fn gcd(self, other: Self) -> Self

Source§

impl Gcd for u16

Source§

fn gcd(self, other: Self) -> Self

Source§

impl Gcd for u32

Source§

fn gcd(self, other: Self) -> Self

Source§

impl Gcd for u64

Source§

fn gcd(self, other: Self) -> Self

Source§

impl Gcd for u128

Source§

fn gcd(self, other: Self) -> Self

Source§

impl Gcd for usize

Source§

fn gcd(self, other: Self) -> Self

Implementors§