Div

Trait Div 

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

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

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl Div for i8

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0 or the division results in overflow.

Source§

type Output = i8

Source§

fn div(self, other: i8) -> i8

Source§

impl Div for i16

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0 or the division results in overflow.

Source§

type Output = i16

Source§

fn div(self, other: i16) -> i16

Source§

impl Div for i32

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0 or the division results in overflow.

Source§

type Output = i32

Source§

fn div(self, other: i32) -> i32

Source§

impl Div for i64

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0 or the division results in overflow.

Source§

type Output = i64

Source§

fn div(self, other: i64) -> i64

Source§

impl Div for i128

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0 or the division results in overflow.

Source§

type Output = i128

Source§

fn div(self, other: i128) -> i128

Source§

impl Div for isize

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0 or the division results in overflow.

Source§

type Output = isize

Source§

fn div(self, other: isize) -> isize

Source§

impl Div for u8

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0.

Source§

type Output = u8

Source§

fn div(self, other: u8) -> u8

Source§

impl Div for u16

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0.

Source§

type Output = u16

Source§

fn div(self, other: u16) -> u16

Source§

impl Div for u32

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0.

Source§

type Output = u32

Source§

fn div(self, other: u32) -> u32

Source§

impl Div for u64

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0.

Source§

type Output = u64

Source§

fn div(self, other: u64) -> u64

Source§

impl Div for u128

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0.

Source§

type Output = u128

Source§

fn div(self, other: u128) -> u128

Source§

impl Div for usize

This operation rounds towards zero, truncating any fractional part of the exact result.

§Panics

This operation will panic if other == 0.

Source§

type Output = usize

Source§

fn div(self, other: usize) -> usize

Implementors§