Trait malachite_base::num::arithmetic::traits::WrappingDivAssign
source · [−]pub trait WrappingDivAssign<RHS = Self> {
fn wrapping_div_assign(&mut self, other: RHS);
}
Expand description
Divides a number by another number in place, wrapping around at the boundary of the type.
Required Methods
fn wrapping_div_assign(&mut self, other: RHS)
Implementations on Foreign Types
sourceimpl WrappingDivAssign<u8> for u8
impl WrappingDivAssign<u8> for u8
sourcefn wrapping_div_assign(&mut self, other: u8)
fn wrapping_div_assign(&mut self, other: u8)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<u16> for u16
impl WrappingDivAssign<u16> for u16
sourcefn wrapping_div_assign(&mut self, other: u16)
fn wrapping_div_assign(&mut self, other: u16)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<u32> for u32
impl WrappingDivAssign<u32> for u32
sourcefn wrapping_div_assign(&mut self, other: u32)
fn wrapping_div_assign(&mut self, other: u32)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<u64> for u64
impl WrappingDivAssign<u64> for u64
sourcefn wrapping_div_assign(&mut self, other: u64)
fn wrapping_div_assign(&mut self, other: u64)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<u128> for u128
impl WrappingDivAssign<u128> for u128
sourcefn wrapping_div_assign(&mut self, other: u128)
fn wrapping_div_assign(&mut self, other: u128)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<usize> for usize
impl WrappingDivAssign<usize> for usize
sourcefn wrapping_div_assign(&mut self, other: usize)
fn wrapping_div_assign(&mut self, other: usize)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<i8> for i8
impl WrappingDivAssign<i8> for i8
sourcefn wrapping_div_assign(&mut self, other: i8)
fn wrapping_div_assign(&mut self, other: i8)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<i16> for i16
impl WrappingDivAssign<i16> for i16
sourcefn wrapping_div_assign(&mut self, other: i16)
fn wrapping_div_assign(&mut self, other: i16)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<i32> for i32
impl WrappingDivAssign<i32> for i32
sourcefn wrapping_div_assign(&mut self, other: i32)
fn wrapping_div_assign(&mut self, other: i32)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<i64> for i64
impl WrappingDivAssign<i64> for i64
sourcefn wrapping_div_assign(&mut self, other: i64)
fn wrapping_div_assign(&mut self, other: i64)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<i128> for i128
impl WrappingDivAssign<i128> for i128
sourcefn wrapping_div_assign(&mut self, other: i128)
fn wrapping_div_assign(&mut self, other: i128)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.
sourceimpl WrappingDivAssign<isize> for isize
impl WrappingDivAssign<isize> for isize
sourcefn wrapping_div_assign(&mut self, other: isize)
fn wrapping_div_assign(&mut self, other: isize)
Divides a number by another number in place, wrapping around at the boundary of the type.
Wrapping only occurs when Self
is signed, self
is Self::MIN
, and other
is
-1. The “actual” result, -Self::MIN
, can’t be represented and is wrapped back to
Self::MIN
.
Worst-case complexity
Constant time and additional memory.
Examples
See here.