Trait malachite_base::num::arithmetic::traits::ModShlAssign
source · [−]pub trait ModShlAssign<RHS, M = Self> {
fn mod_shl_assign(&mut self, other: RHS, m: M);
}
Expand description
Left-shifts a number (multiplies it by a power of 2) modulo another number $m$, in place. Assumes the input is already reduced modulo $m$.
Required Methods
fn mod_shl_assign(&mut self, other: RHS, m: M)
Implementations on Foreign Types
sourceimpl ModShlAssign<u8, u8> for u8
impl ModShlAssign<u8, u8> for u8
sourcefn mod_shl_assign(&mut self, other: u8, m: u8)
fn mod_shl_assign(&mut self, other: u8, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u16, u8> for u8
impl ModShlAssign<u16, u8> for u8
sourcefn mod_shl_assign(&mut self, other: u16, m: u8)
fn mod_shl_assign(&mut self, other: u16, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u32, u8> for u8
impl ModShlAssign<u32, u8> for u8
sourcefn mod_shl_assign(&mut self, other: u32, m: u8)
fn mod_shl_assign(&mut self, other: u32, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u64, u8> for u8
impl ModShlAssign<u64, u8> for u8
sourcefn mod_shl_assign(&mut self, other: u64, m: u8)
fn mod_shl_assign(&mut self, other: u64, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u128, u8> for u8
impl ModShlAssign<u128, u8> for u8
sourcefn mod_shl_assign(&mut self, other: u128, m: u8)
fn mod_shl_assign(&mut self, other: u128, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<usize, u8> for u8
impl ModShlAssign<usize, u8> for u8
sourcefn mod_shl_assign(&mut self, other: usize, m: u8)
fn mod_shl_assign(&mut self, other: usize, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u8, u16> for u16
impl ModShlAssign<u8, u16> for u16
sourcefn mod_shl_assign(&mut self, other: u8, m: u16)
fn mod_shl_assign(&mut self, other: u8, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u16, u16> for u16
impl ModShlAssign<u16, u16> for u16
sourcefn mod_shl_assign(&mut self, other: u16, m: u16)
fn mod_shl_assign(&mut self, other: u16, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u32, u16> for u16
impl ModShlAssign<u32, u16> for u16
sourcefn mod_shl_assign(&mut self, other: u32, m: u16)
fn mod_shl_assign(&mut self, other: u32, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u64, u16> for u16
impl ModShlAssign<u64, u16> for u16
sourcefn mod_shl_assign(&mut self, other: u64, m: u16)
fn mod_shl_assign(&mut self, other: u64, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u128, u16> for u16
impl ModShlAssign<u128, u16> for u16
sourcefn mod_shl_assign(&mut self, other: u128, m: u16)
fn mod_shl_assign(&mut self, other: u128, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<usize, u16> for u16
impl ModShlAssign<usize, u16> for u16
sourcefn mod_shl_assign(&mut self, other: usize, m: u16)
fn mod_shl_assign(&mut self, other: usize, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u8, u32> for u32
impl ModShlAssign<u8, u32> for u32
sourcefn mod_shl_assign(&mut self, other: u8, m: u32)
fn mod_shl_assign(&mut self, other: u8, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u16, u32> for u32
impl ModShlAssign<u16, u32> for u32
sourcefn mod_shl_assign(&mut self, other: u16, m: u32)
fn mod_shl_assign(&mut self, other: u16, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u32, u32> for u32
impl ModShlAssign<u32, u32> for u32
sourcefn mod_shl_assign(&mut self, other: u32, m: u32)
fn mod_shl_assign(&mut self, other: u32, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u64, u32> for u32
impl ModShlAssign<u64, u32> for u32
sourcefn mod_shl_assign(&mut self, other: u64, m: u32)
fn mod_shl_assign(&mut self, other: u64, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u128, u32> for u32
impl ModShlAssign<u128, u32> for u32
sourcefn mod_shl_assign(&mut self, other: u128, m: u32)
fn mod_shl_assign(&mut self, other: u128, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<usize, u32> for u32
impl ModShlAssign<usize, u32> for u32
sourcefn mod_shl_assign(&mut self, other: usize, m: u32)
fn mod_shl_assign(&mut self, other: usize, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u8, u64> for u64
impl ModShlAssign<u8, u64> for u64
sourcefn mod_shl_assign(&mut self, other: u8, m: u64)
fn mod_shl_assign(&mut self, other: u8, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u16, u64> for u64
impl ModShlAssign<u16, u64> for u64
sourcefn mod_shl_assign(&mut self, other: u16, m: u64)
fn mod_shl_assign(&mut self, other: u16, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u32, u64> for u64
impl ModShlAssign<u32, u64> for u64
sourcefn mod_shl_assign(&mut self, other: u32, m: u64)
fn mod_shl_assign(&mut self, other: u32, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u64, u64> for u64
impl ModShlAssign<u64, u64> for u64
sourcefn mod_shl_assign(&mut self, other: u64, m: u64)
fn mod_shl_assign(&mut self, other: u64, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u128, u64> for u64
impl ModShlAssign<u128, u64> for u64
sourcefn mod_shl_assign(&mut self, other: u128, m: u64)
fn mod_shl_assign(&mut self, other: u128, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<usize, u64> for u64
impl ModShlAssign<usize, u64> for u64
sourcefn mod_shl_assign(&mut self, other: usize, m: u64)
fn mod_shl_assign(&mut self, other: usize, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u8, u128> for u128
impl ModShlAssign<u8, u128> for u128
sourcefn mod_shl_assign(&mut self, other: u8, m: u128)
fn mod_shl_assign(&mut self, other: u8, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u16, u128> for u128
impl ModShlAssign<u16, u128> for u128
sourcefn mod_shl_assign(&mut self, other: u16, m: u128)
fn mod_shl_assign(&mut self, other: u16, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u32, u128> for u128
impl ModShlAssign<u32, u128> for u128
sourcefn mod_shl_assign(&mut self, other: u32, m: u128)
fn mod_shl_assign(&mut self, other: u32, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u64, u128> for u128
impl ModShlAssign<u64, u128> for u128
sourcefn mod_shl_assign(&mut self, other: u64, m: u128)
fn mod_shl_assign(&mut self, other: u64, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u128, u128> for u128
impl ModShlAssign<u128, u128> for u128
sourcefn mod_shl_assign(&mut self, other: u128, m: u128)
fn mod_shl_assign(&mut self, other: u128, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<usize, u128> for u128
impl ModShlAssign<usize, u128> for u128
sourcefn mod_shl_assign(&mut self, other: usize, m: u128)
fn mod_shl_assign(&mut self, other: usize, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u8, usize> for usize
impl ModShlAssign<u8, usize> for usize
sourcefn mod_shl_assign(&mut self, other: u8, m: usize)
fn mod_shl_assign(&mut self, other: u8, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u16, usize> for usize
impl ModShlAssign<u16, usize> for usize
sourcefn mod_shl_assign(&mut self, other: u16, m: usize)
fn mod_shl_assign(&mut self, other: u16, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u32, usize> for usize
impl ModShlAssign<u32, usize> for usize
sourcefn mod_shl_assign(&mut self, other: u32, m: usize)
fn mod_shl_assign(&mut self, other: u32, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u64, usize> for usize
impl ModShlAssign<u64, usize> for usize
sourcefn mod_shl_assign(&mut self, other: u64, m: usize)
fn mod_shl_assign(&mut self, other: u64, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<u128, usize> for usize
impl ModShlAssign<u128, usize> for usize
sourcefn mod_shl_assign(&mut self, other: u128, m: usize)
fn mod_shl_assign(&mut self, other: u128, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<usize, usize> for usize
impl ModShlAssign<usize, usize> for usize
sourcefn mod_shl_assign(&mut self, other: usize, m: usize)
fn mod_shl_assign(&mut self, other: usize, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $2^nx \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i8, u8> for u8
impl ModShlAssign<i8, u8> for u8
sourcefn mod_shl_assign(&mut self, other: i8, m: u8)
fn mod_shl_assign(&mut self, other: i8, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i16, u8> for u8
impl ModShlAssign<i16, u8> for u8
sourcefn mod_shl_assign(&mut self, other: i16, m: u8)
fn mod_shl_assign(&mut self, other: i16, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i32, u8> for u8
impl ModShlAssign<i32, u8> for u8
sourcefn mod_shl_assign(&mut self, other: i32, m: u8)
fn mod_shl_assign(&mut self, other: i32, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i64, u8> for u8
impl ModShlAssign<i64, u8> for u8
sourcefn mod_shl_assign(&mut self, other: i64, m: u8)
fn mod_shl_assign(&mut self, other: i64, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i128, u8> for u8
impl ModShlAssign<i128, u8> for u8
sourcefn mod_shl_assign(&mut self, other: i128, m: u8)
fn mod_shl_assign(&mut self, other: i128, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<isize, u8> for u8
impl ModShlAssign<isize, u8> for u8
sourcefn mod_shl_assign(&mut self, other: isize, m: u8)
fn mod_shl_assign(&mut self, other: isize, m: u8)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i8, u16> for u16
impl ModShlAssign<i8, u16> for u16
sourcefn mod_shl_assign(&mut self, other: i8, m: u16)
fn mod_shl_assign(&mut self, other: i8, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i16, u16> for u16
impl ModShlAssign<i16, u16> for u16
sourcefn mod_shl_assign(&mut self, other: i16, m: u16)
fn mod_shl_assign(&mut self, other: i16, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i32, u16> for u16
impl ModShlAssign<i32, u16> for u16
sourcefn mod_shl_assign(&mut self, other: i32, m: u16)
fn mod_shl_assign(&mut self, other: i32, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i64, u16> for u16
impl ModShlAssign<i64, u16> for u16
sourcefn mod_shl_assign(&mut self, other: i64, m: u16)
fn mod_shl_assign(&mut self, other: i64, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i128, u16> for u16
impl ModShlAssign<i128, u16> for u16
sourcefn mod_shl_assign(&mut self, other: i128, m: u16)
fn mod_shl_assign(&mut self, other: i128, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<isize, u16> for u16
impl ModShlAssign<isize, u16> for u16
sourcefn mod_shl_assign(&mut self, other: isize, m: u16)
fn mod_shl_assign(&mut self, other: isize, m: u16)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i8, u32> for u32
impl ModShlAssign<i8, u32> for u32
sourcefn mod_shl_assign(&mut self, other: i8, m: u32)
fn mod_shl_assign(&mut self, other: i8, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i16, u32> for u32
impl ModShlAssign<i16, u32> for u32
sourcefn mod_shl_assign(&mut self, other: i16, m: u32)
fn mod_shl_assign(&mut self, other: i16, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i32, u32> for u32
impl ModShlAssign<i32, u32> for u32
sourcefn mod_shl_assign(&mut self, other: i32, m: u32)
fn mod_shl_assign(&mut self, other: i32, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i64, u32> for u32
impl ModShlAssign<i64, u32> for u32
sourcefn mod_shl_assign(&mut self, other: i64, m: u32)
fn mod_shl_assign(&mut self, other: i64, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i128, u32> for u32
impl ModShlAssign<i128, u32> for u32
sourcefn mod_shl_assign(&mut self, other: i128, m: u32)
fn mod_shl_assign(&mut self, other: i128, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<isize, u32> for u32
impl ModShlAssign<isize, u32> for u32
sourcefn mod_shl_assign(&mut self, other: isize, m: u32)
fn mod_shl_assign(&mut self, other: isize, m: u32)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i8, u64> for u64
impl ModShlAssign<i8, u64> for u64
sourcefn mod_shl_assign(&mut self, other: i8, m: u64)
fn mod_shl_assign(&mut self, other: i8, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i16, u64> for u64
impl ModShlAssign<i16, u64> for u64
sourcefn mod_shl_assign(&mut self, other: i16, m: u64)
fn mod_shl_assign(&mut self, other: i16, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i32, u64> for u64
impl ModShlAssign<i32, u64> for u64
sourcefn mod_shl_assign(&mut self, other: i32, m: u64)
fn mod_shl_assign(&mut self, other: i32, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i64, u64> for u64
impl ModShlAssign<i64, u64> for u64
sourcefn mod_shl_assign(&mut self, other: i64, m: u64)
fn mod_shl_assign(&mut self, other: i64, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i128, u64> for u64
impl ModShlAssign<i128, u64> for u64
sourcefn mod_shl_assign(&mut self, other: i128, m: u64)
fn mod_shl_assign(&mut self, other: i128, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<isize, u64> for u64
impl ModShlAssign<isize, u64> for u64
sourcefn mod_shl_assign(&mut self, other: isize, m: u64)
fn mod_shl_assign(&mut self, other: isize, m: u64)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i8, u128> for u128
impl ModShlAssign<i8, u128> for u128
sourcefn mod_shl_assign(&mut self, other: i8, m: u128)
fn mod_shl_assign(&mut self, other: i8, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i16, u128> for u128
impl ModShlAssign<i16, u128> for u128
sourcefn mod_shl_assign(&mut self, other: i16, m: u128)
fn mod_shl_assign(&mut self, other: i16, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i32, u128> for u128
impl ModShlAssign<i32, u128> for u128
sourcefn mod_shl_assign(&mut self, other: i32, m: u128)
fn mod_shl_assign(&mut self, other: i32, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i64, u128> for u128
impl ModShlAssign<i64, u128> for u128
sourcefn mod_shl_assign(&mut self, other: i64, m: u128)
fn mod_shl_assign(&mut self, other: i64, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i128, u128> for u128
impl ModShlAssign<i128, u128> for u128
sourcefn mod_shl_assign(&mut self, other: i128, m: u128)
fn mod_shl_assign(&mut self, other: i128, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<isize, u128> for u128
impl ModShlAssign<isize, u128> for u128
sourcefn mod_shl_assign(&mut self, other: isize, m: u128)
fn mod_shl_assign(&mut self, other: isize, m: u128)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i8, usize> for usize
impl ModShlAssign<i8, usize> for usize
sourcefn mod_shl_assign(&mut self, other: i8, m: usize)
fn mod_shl_assign(&mut self, other: i8, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i16, usize> for usize
impl ModShlAssign<i16, usize> for usize
sourcefn mod_shl_assign(&mut self, other: i16, m: usize)
fn mod_shl_assign(&mut self, other: i16, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i32, usize> for usize
impl ModShlAssign<i32, usize> for usize
sourcefn mod_shl_assign(&mut self, other: i32, m: usize)
fn mod_shl_assign(&mut self, other: i32, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i64, usize> for usize
impl ModShlAssign<i64, usize> for usize
sourcefn mod_shl_assign(&mut self, other: i64, m: usize)
fn mod_shl_assign(&mut self, other: i64, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<i128, usize> for usize
impl ModShlAssign<i128, usize> for usize
sourcefn mod_shl_assign(&mut self, other: i128, m: usize)
fn mod_shl_assign(&mut self, other: i128, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.
sourceimpl ModShlAssign<isize, usize> for usize
impl ModShlAssign<isize, usize> for usize
sourcefn mod_shl_assign(&mut self, other: isize, m: usize)
fn mod_shl_assign(&mut self, other: isize, m: usize)
Left-shifts a number (multiplies it by a power of 2) modulo a number $m$, in place. Assumes the input is already reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $\lfloor 2^nx \rfloor \equiv y \mod m$.
Worst-case complexity
$T(n) = O(n)$
$M(n) = O(1)$
where $T$ is time, $M$ is additional memory, and $n$ is
other.significant_bits()
.
Examples
See here.