Trait malachite_base::num::arithmetic::traits::DivRoundAssign
source · [−]pub trait DivRoundAssign<RHS = Self> {
fn div_round_assign(&mut self, other: RHS, rm: RoundingMode);
}
Expand description
Divides a number by another number in place and rounds according to a specified rounding mode.
Required Methods
fn div_round_assign(&mut self, other: RHS, rm: RoundingMode)
Implementations on Foreign Types
sourceimpl DivRoundAssign<u8> for u8
impl DivRoundAssign<u8> for u8
sourcefn div_round_assign(&mut self, other: u8, rm: RoundingMode)
fn div_round_assign(&mut self, other: u8, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<u16> for u16
impl DivRoundAssign<u16> for u16
sourcefn div_round_assign(&mut self, other: u16, rm: RoundingMode)
fn div_round_assign(&mut self, other: u16, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<u32> for u32
impl DivRoundAssign<u32> for u32
sourcefn div_round_assign(&mut self, other: u32, rm: RoundingMode)
fn div_round_assign(&mut self, other: u32, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<u64> for u64
impl DivRoundAssign<u64> for u64
sourcefn div_round_assign(&mut self, other: u64, rm: RoundingMode)
fn div_round_assign(&mut self, other: u64, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<u128> for u128
impl DivRoundAssign<u128> for u128
sourcefn div_round_assign(&mut self, other: u128, rm: RoundingMode)
fn div_round_assign(&mut self, other: u128, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<usize> for usize
impl DivRoundAssign<usize> for usize
sourcefn div_round_assign(&mut self, other: usize, rm: RoundingMode)
fn div_round_assign(&mut self, other: usize, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<i8> for i8
impl DivRoundAssign<i8> for i8
sourcefn div_round_assign(&mut self, other: i8, rm: RoundingMode)
fn div_round_assign(&mut self, other: i8, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<i16> for i16
impl DivRoundAssign<i16> for i16
sourcefn div_round_assign(&mut self, other: i16, rm: RoundingMode)
fn div_round_assign(&mut self, other: i16, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<i32> for i32
impl DivRoundAssign<i32> for i32
sourcefn div_round_assign(&mut self, other: i32, rm: RoundingMode)
fn div_round_assign(&mut self, other: i32, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<i64> for i64
impl DivRoundAssign<i64> for i64
sourcefn div_round_assign(&mut self, other: i64, rm: RoundingMode)
fn div_round_assign(&mut self, other: i64, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<i128> for i128
impl DivRoundAssign<i128> for i128
sourcefn div_round_assign(&mut self, other: i128, rm: RoundingMode)
fn div_round_assign(&mut self, other: i128, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.
sourceimpl DivRoundAssign<isize> for isize
impl DivRoundAssign<isize> for isize
sourcefn div_round_assign(&mut self, other: isize, rm: RoundingMode)
fn div_round_assign(&mut self, other: isize, rm: RoundingMode)
Divides a value by another value in place and rounds according to a specified rounding mode.
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.