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§
source§impl WrappingDivAssign<u8> for u8
impl WrappingDivAssign<u8> for u8
source§fn 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.
source§impl WrappingDivAssign<u16> for u16
impl WrappingDivAssign<u16> for u16
source§fn 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.
source§impl WrappingDivAssign<u32> for u32
impl WrappingDivAssign<u32> for u32
source§fn 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.
source§impl WrappingDivAssign<u64> for u64
impl WrappingDivAssign<u64> for u64
source§fn 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.
source§impl WrappingDivAssign<u128> for u128
impl WrappingDivAssign<u128> for u128
source§fn 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.
source§impl WrappingDivAssign<usize> for usize
impl WrappingDivAssign<usize> for usize
source§fn 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.
source§impl WrappingDivAssign<i8> for i8
impl WrappingDivAssign<i8> for i8
source§fn 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.
source§impl WrappingDivAssign<i16> for i16
impl WrappingDivAssign<i16> for i16
source§fn 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.
source§impl WrappingDivAssign<i32> for i32
impl WrappingDivAssign<i32> for i32
source§fn 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.
source§impl WrappingDivAssign<i64> for i64
impl WrappingDivAssign<i64> for i64
source§fn 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.
source§impl WrappingDivAssign<i128> for i128
impl WrappingDivAssign<i128> for i128
source§fn 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.
source§impl WrappingDivAssign<isize> for isize
impl WrappingDivAssign<isize> for isize
source§fn 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.