Trait CheckedDiv

Source
pub trait CheckedDiv<RHS = Self>: Sized {
    // Required methods
    fn checked_div(self, rhs: RHS) -> Option<Self>;
    fn checked_div_ceil(self, rhs: RHS) -> Option<Self>;
}

Required Methods§

Source

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

Source

fn checked_div_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 CheckedDiv for u8

Source§

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

Source§

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

Source§

impl CheckedDiv for u16

Source§

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

Source§

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

Source§

impl CheckedDiv for u32

Source§

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

Source§

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

Source§

impl CheckedDiv for u64

Source§

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

Source§

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

Source§

impl CheckedDiv for u128

Source§

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

Source§

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

Implementors§