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: u8) -> u8

Source§

impl Gcd for u16

Source§

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

Source§

impl Gcd for u32

Source§

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

Source§

impl Gcd for u64

Source§

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

Source§

impl Gcd for u128

Source§

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

Source§

impl Gcd for usize

Source§

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

Implementors§