Trait const_ops::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<i128> 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.

§

type Output = i128

source§

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

source§

impl Div<i32> 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.

§

type Output = i32

source§

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

source§

impl Div<u8> for u8

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

Panics

This operation will panic if other == 0.

§

type Output = u8

source§

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

source§

impl Div<u16> for u16

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

Panics

This operation will panic if other == 0.

§

type Output = u16

source§

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

source§

impl Div<usize> for usize

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

Panics

This operation will panic if other == 0.

§

type Output = usize

source§

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

source§

impl Div<i8> 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.

§

type Output = i8

source§

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

source§

impl Div<u128> for u128

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

Panics

This operation will panic if other == 0.

§

type Output = u128

source§

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

source§

impl Div<i64> 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.

§

type Output = i64

source§

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

source§

impl Div<i16> 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.

§

type Output = i16

source§

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

source§

impl Div<isize> 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.

§

type Output = isize

source§

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

source§

impl Div<u64> for u64

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

Panics

This operation will panic if other == 0.

§

type Output = u64

source§

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

source§

impl Div<u32> for u32

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

Panics

This operation will panic if other == 0.

§

type Output = u32

source§

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

Implementors§