Trait CheckedMul

Source
pub trait CheckedMul<RHS = Self>: Sized {
    // Required method
    fn checked_mul(self, rhs: RHS) -> Option<Self>;

    // Provided method
    fn checked_mul_ceil(self, rhs: RHS) -> Option<Self> { ... }
}

Required Methods§

Source

fn checked_mul(self, rhs: RHS) -> Option<Self>

Provided Methods§

Source

fn checked_mul_ceil(self, rhs: 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 CheckedMul for i8

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for i16

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for i32

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for i64

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for i128

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for u8

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for u16

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for u32

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for u64

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Source§

impl CheckedMul for u128

Source§

fn checked_mul(self, rhs: Self) -> Option<Self>

Implementors§