Trait CheckedMulDiv

Source
pub trait CheckedMulDiv<RHS = Self>: Sized {
    // Required methods
    fn checked_mul_div(self, mul: RHS, div: RHS) -> Option<Self>;
    fn checked_mul_div_ceil(self, mul: RHS, div: RHS) -> Option<Self>;
    fn checked_mul_div_euclid(self, mul: RHS, div: RHS) -> Option<Self>;
}

Required Methods§

Source

fn checked_mul_div(self, mul: RHS, div: RHS) -> Option<Self>

Source

fn checked_mul_div_ceil(self, mul: RHS, div: RHS) -> Option<Self>

Source

fn checked_mul_div_euclid(self, mul: RHS, div: RHS) -> Option<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 CheckedMulDiv for i128

Source§

fn checked_mul_div(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_ceil(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_euclid(self, mul: Self, div: Self) -> Option<Self>

Source§

impl CheckedMulDiv for u8

Source§

fn checked_mul_div(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_ceil(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_euclid(self, mul: Self, div: Self) -> Option<Self>

Source§

impl CheckedMulDiv for u16

Source§

fn checked_mul_div(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_ceil(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_euclid(self, mul: Self, div: Self) -> Option<Self>

Source§

impl CheckedMulDiv for u32

Source§

fn checked_mul_div(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_ceil(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_euclid(self, mul: Self, div: Self) -> Option<Self>

Source§

impl CheckedMulDiv for u64

Source§

fn checked_mul_div(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_ceil(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_euclid(self, mul: Self, div: Self) -> Option<Self>

Source§

impl CheckedMulDiv for u128

Source§

fn checked_mul_div(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_ceil(self, mul: Self, div: Self) -> Option<Self>

Source§

fn checked_mul_div_euclid(self, mul: Self, div: Self) -> Option<Self>

Implementors§