pub trait Modulo: Sized + Rem<Output = Self> {
    // Required method
    fn modulo(&self, v: &Self) -> Self;
}

Required Methods§

Source

fn modulo(&self, v: &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 Modulo for i8

Source§

fn modulo(&self, _v: &i8) -> i8

Source§

impl Modulo for i16

Source§

fn modulo(&self, _v: &i16) -> i16

Source§

impl Modulo for i32

Source§

fn modulo(&self, _v: &i32) -> i32

Source§

impl Modulo for i64

Source§

fn modulo(&self, _v: &i64) -> i64

Source§

impl Modulo for i128

Source§

fn modulo(&self, _v: &i128) -> i128

Source§

impl Modulo for u8

Source§

fn modulo(&self, v: &u8) -> u8

Source§

impl Modulo for u16

Source§

fn modulo(&self, v: &u16) -> u16

Source§

impl Modulo for u32

Source§

fn modulo(&self, v: &u32) -> u32

Source§

impl Modulo for u64

Source§

fn modulo(&self, v: &u64) -> u64

Source§

impl Modulo for u128

Source§

fn modulo(&self, v: &u128) -> u128

Implementors§