RoundedDiv

Trait RoundedDiv 

Source
pub trait RoundedDiv<Rhs = Self> {
    type Output;

    // Required method
    fn rounded_div(self, rhs: Rhs) -> Self::Output;
}
Expand description

Get rounded result of an integer division.

Required Associated Types§

Source

type Output

Type of the rounded result.

Required Methods§

Source

fn rounded_div(self, rhs: Rhs) -> Self::Output

Get rounded result of an integer division.

Implementations on Foreign Types§

Source§

impl RoundedDiv for i8

Source§

type Output = i8

Source§

fn rounded_div(self, rhs: i8) -> Self::Output

Source§

impl RoundedDiv for i16

Source§

type Output = i16

Source§

fn rounded_div(self, rhs: i16) -> Self::Output

Source§

impl RoundedDiv for i32

Source§

type Output = i32

Source§

fn rounded_div(self, rhs: i32) -> Self::Output

Source§

impl RoundedDiv for i64

Source§

type Output = i64

Source§

fn rounded_div(self, rhs: i64) -> Self::Output

Source§

impl RoundedDiv for i128

Source§

type Output = i128

Source§

fn rounded_div(self, rhs: i128) -> Self::Output

Source§

impl RoundedDiv for isize

Source§

type Output = isize

Source§

fn rounded_div(self, rhs: isize) -> Self::Output

Source§

impl RoundedDiv for u8

Source§

type Output = u8

Source§

fn rounded_div(self, rhs: u8) -> Self::Output

Source§

impl RoundedDiv for u16

Source§

type Output = u16

Source§

fn rounded_div(self, rhs: u16) -> Self::Output

Source§

impl RoundedDiv for u32

Source§

type Output = u32

Source§

fn rounded_div(self, rhs: u32) -> Self::Output

Source§

impl RoundedDiv for u64

Source§

type Output = u64

Source§

fn rounded_div(self, rhs: u64) -> Self::Output

Source§

impl RoundedDiv for u128

Source§

type Output = u128

Source§

fn rounded_div(self, rhs: u128) -> Self::Output

Source§

impl RoundedDiv for usize

Source§

type Output = usize

Source§

fn rounded_div(self, rhs: usize) -> Self::Output

Implementors§