Trait malachite_base::num::arithmetic::traits::DivRoundAssign

source ·
pub trait DivRoundAssign<RHS = Self> {
    // Required method
    fn div_round_assign(&mut self, other: RHS, rm: RoundingMode) -> Ordering;
}
Expand description

Divides a number by another number in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

Required Methods§

source

fn div_round_assign(&mut self, other: RHS, rm: RoundingMode) -> Ordering

Implementations on Foreign Types§

source§

impl DivRoundAssign for i8

source§

fn div_round_assign(&mut self, other: i8, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, if self is Self::MIN and other is -1, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for i16

source§

fn div_round_assign(&mut self, other: i16, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, if self is Self::MIN and other is -1, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for i32

source§

fn div_round_assign(&mut self, other: i32, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, if self is Self::MIN and other is -1, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for i64

source§

fn div_round_assign(&mut self, other: i64, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, if self is Self::MIN and other is -1, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for i128

source§

fn div_round_assign(&mut self, other: i128, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, if self is Self::MIN and other is -1, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for isize

source§

fn div_round_assign(&mut self, other: isize, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, if self is Self::MIN and other is -1, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for u8

source§

fn div_round_assign(&mut self, other: u8, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for u16

source§

fn div_round_assign(&mut self, other: u16, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for u32

source§

fn div_round_assign(&mut self, other: u32, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for u64

source§

fn div_round_assign(&mut self, other: u64, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for u128

source§

fn div_round_assign(&mut self, other: u128, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, or if rm is Exact but self is not divisible by other.

§Examples

See here.

source§

impl DivRoundAssign for usize

source§

fn div_round_assign(&mut self, other: usize, rm: RoundingMode) -> Ordering

Divides a value by another value in place and rounds according to a specified rounding mode. An Ordering is returned, indicating whether the assigned value is less than, equal to, or greater than the exact value.

See the DivRound documentation for details.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if other is zero, or if rm is Exact but self is not divisible by other.

§Examples

See here.

Implementors§