pub struct DenomSparseU16<const NUM_PRIMES: usize, const NUM_INLINE: usize> { /* private fields */ }Expand description
Denominator representation that decomposes an integer as a product of the
first NUM_PRIMES primes (up to 2^16), multiplied by a regular big integer
when that’s not sufficient.
Trait Implementations§
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Clone for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Clone for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§fn clone(&self) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
fn clone(&self) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Debug for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Debug for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Denom for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Denom for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§fn into_biguint(self) -> BigUint
fn into_biguint(self) -> BigUint
Converts this denominator into a big integer.
Source§fn to_biguint(&self) -> BigUint
fn to_biguint(&self) -> BigUint
Converts this denominator into a big integer.
Source§fn normalize(
lnum: &mut BigInt,
rnum: &mut BigInt,
ldenom: &Self,
rdenom: &Self,
) -> Self
fn normalize( lnum: &mut BigInt, rnum: &mut BigInt, ldenom: &Self, rdenom: &Self, ) -> Self
Returns the least common multiple of two denominators, adjusting the
numerators accordingly.
Source§fn gcd_reduce(&mut self, num: &mut BigInt)
fn gcd_reduce(&mut self, num: &mut BigInt)
Reduces this denominator together with the given numerator so that their
GCD is one.
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> DenomRef<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Div for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Div for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Div for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Div for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§fn div(self, rhs: Self) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
fn div(self, rhs: Self) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Divides this denominator by the other one.
This function panics if the other one doesn’t divide this one.
Source§type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
The resulting type after applying the
/ operator.Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Div<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Div<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Div<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Div<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§fn div(
self,
rhs: DenomSparseU16<NUM_PRIMES, NUM_INLINE>,
) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
fn div( self, rhs: DenomSparseU16<NUM_PRIMES, NUM_INLINE>, ) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Divides this denominator by the other one.
This function panics if the other one doesn’t divide this one.
Source§type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
The resulting type after applying the
/ operator.Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> DivAssign for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> DivAssign for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Divides this denominator by the other one.
This function panics if the other one doesn’t divide this one.
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> DivAssign<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> DivAssign<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§fn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
Divides this denominator by the other one.
This function panics if the other one doesn’t divide this one.
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Eq for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<&BigUint> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<&BigUint> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigUint
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigUint
Source§fn from(value: &DenomSparseU16<NUM_PRIMES, NUM_INLINE>) -> BigUint
fn from(value: &DenomSparseU16<NUM_PRIMES, NUM_INLINE>) -> BigUint
Converts to this type from the input type.
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<BigUint> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<BigUint> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigUint
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigUint
Source§fn from(value: DenomSparseU16<NUM_PRIMES, NUM_INLINE>) -> BigUint
fn from(value: DenomSparseU16<NUM_PRIMES, NUM_INLINE>) -> BigUint
Converts to this type from the input type.
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u8> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u8> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u16> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u16> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u32> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u32> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u64> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u64> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u128> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<u128> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<usize> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> From<usize> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
The resulting type after applying the
* operator.Source§fn mul(self, rhs: Self) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
fn mul(self, rhs: Self) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Performs the
* operation. Read moreSource§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&BigInt> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&BigInt> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&BigInt> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&BigInt> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigInt
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigInt
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &BigInt
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &BigInt
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<BigInt> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<BigInt> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<BigInt> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<BigInt> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
The resulting type after applying the
* operator.Source§fn mul(
self,
rhs: DenomSparseU16<NUM_PRIMES, NUM_INLINE>,
) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
fn mul( self, rhs: DenomSparseU16<NUM_PRIMES, NUM_INLINE>, ) -> DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Performs the
* operation. Read moreSource§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigInt
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigInt
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &BigInt
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Mul<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for &BigInt
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> MulAssign for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> MulAssign for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> MulAssign<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> MulAssign<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
Performs the
*= operation. Read moreSource§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> MulAssign<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigInt
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> MulAssign<&DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigInt
Source§fn mul_assign(&mut self, rhs: &DenomSparseU16<NUM_PRIMES, NUM_INLINE>)
fn mul_assign(&mut self, rhs: &DenomSparseU16<NUM_PRIMES, NUM_INLINE>)
Performs the
*= operation. Read moreSource§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> MulAssign<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigInt
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> MulAssign<DenomSparseU16<NUM_PRIMES, NUM_INLINE>> for BigInt
Source§fn mul_assign(&mut self, rhs: DenomSparseU16<NUM_PRIMES, NUM_INLINE>)
fn mul_assign(&mut self, rhs: DenomSparseU16<NUM_PRIMES, NUM_INLINE>)
Performs the
*= operation. Read moreSource§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> One for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> One for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> PartialEq for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> PartialEq for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Pow<u32> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Pow<u32> for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Pow<u32> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Pow<u32> for &DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Source§type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
type Output = DenomSparseU16<NUM_PRIMES, NUM_INLINE>
The result after applying the operator.
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> StructuralPartialEq for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Auto Trait Implementations§
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Freeze for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> RefUnwindSafe for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Send for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Sync for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> Unpin for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> UnsafeUnpin for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
impl<const NUM_PRIMES: usize, const NUM_INLINE: usize> UnwindSafe for DenomSparseU16<NUM_PRIMES, NUM_INLINE>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more