pub struct Modulo<const N: usize> { /* private fields */ }Implementations§
Trait Implementations§
impl<const N: usize> Eq for Modulo<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Modulo<N>
impl<const N: usize> RefUnwindSafe for Modulo<N>
impl<const N: usize> Send for Modulo<N>
impl<const N: usize> Sync for Modulo<N>
impl<const N: usize> Unpin for Modulo<N>
impl<const N: usize> UnwindSafe for Modulo<N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoErgonomic for Twhere
T: MetaType,
impl<T> IntoErgonomic for Twhere
T: MetaType,
fn into_ergonomic(self) -> StructuredElement<Self::Signature>
Source§impl<T> MetaAreAssociateMultiplicationSignature for T
impl<T> MetaAreAssociateMultiplicationSignature for T
fn are_associate(&self, b: &Self) -> bool
Source§impl<T> MetaBezoutDomainSignature for T
impl<T> MetaBezoutDomainSignature for T
Source§impl<T> MetaEuclideanDivisionSignature for T
impl<T> MetaEuclideanDivisionSignature for T
Source§fn quorem(&self, b: &Self) -> Option<(Self, Self)>
fn quorem(&self, b: &Self) -> Option<(Self, Self)>
None if b is 0 and Some((q, r)) such that a=bq+r and r=0 or norm(r) < norm(b)
fn quo(&self, b: &Self) -> Option<Self>
fn rem(&self, b: &Self) -> Self
fn euclidean_gcd(self, y: Self) -> Selfwhere
Self::Signature: FavoriteAssociateSignature,
fn euclidean_xgcd(self, y: Self) -> (Self, Self, Self)
Source§impl<R> MetaFactoringMonoid for R
impl<R> MetaFactoringMonoid for R
fn is_irreducible(&self) -> bool
fn factor_unchecked( &self, ) -> Factored<Self, <<Self::Signature as UniqueFactorizationMonoidSignature>::FactoredExponent as SetSignature>::Set>
fn factor( &self, ) -> Factored<Self, <<Self::Signature as UniqueFactorizationMonoidSignature>::FactoredExponent as SetSignature>::Set>
Source§impl<R> MetaFactoringMonoidNaturalExponent for R
impl<R> MetaFactoringMonoidNaturalExponent for R
fn gcd_by_factor(a: &Self, b: &Self) -> Self
fn lcm_by_factor(a: &Self, b: &Self) -> Option<Self>
fn is_squarefree(&self) -> bool
Source§impl<T> MetaFavoriteAssociateSignature for T
impl<T> MetaFavoriteAssociateSignature for T
fn factor_fav_assoc(&self) -> (Self, Self)
fn fav_assoc(&self) -> Self
fn is_fav_assoc(&self) -> bool
Source§impl<T> MetaFiniteUnitsSignature for T
impl<T> MetaFiniteUnitsSignature for T
Source§impl<T> MetaGreatestCommonDivisorSignature for T
impl<T> MetaGreatestCommonDivisorSignature for T
Source§impl<T> MetaLeftCancellativeMultiplicationSignature for T
impl<T> MetaLeftCancellativeMultiplicationSignature for T
Source§fn try_left_divide(&self, b: &Self) -> Option<Self>
fn try_left_divide(&self, b: &Self) -> Option<Self>
Try to find
x such that a = b * x.Source§impl<T> MetaMultiplicativeMonoidTryInverseSignature for T
impl<T> MetaMultiplicativeMonoidTryInverseSignature for T
fn try_int_pow(&self, n: &Integer) -> Option<Self>
Source§impl<T> MetaRightCancellativeMultiplicationSignature for T
impl<T> MetaRightCancellativeMultiplicationSignature for T
Source§fn try_right_divide(&self, b: &Self) -> Option<Self>
fn try_right_divide(&self, b: &Self) -> Option<Self>
Try to find
x such that a = x * b.Source§impl<T> MetaTryLeftReciprocalSignature for T
impl<T> MetaTryLeftReciprocalSignature for T
Source§fn try_left_reciprocal(&self) -> Option<Self>
fn try_left_reciprocal(&self) -> Option<Self>
x such that x*a=1 or None if no such x exists.Source§impl<T> MetaTryRightReciprocalSignature for T
impl<T> MetaTryRightReciprocalSignature for T
Source§fn try_right_reciprocal(&self) -> Option<Self>
fn try_right_reciprocal(&self) -> Option<Self>
x such that a*x=1 or None if no such x exists.