Struct abstalg::QuotientRing
source · [−]pub struct QuotientRing<A> where
A: EuclideanDomain, { /* private fields */ }
Expand description
A quotient ring of an Euclidean domain by a principal ideal.
Implementations
sourceimpl<A> QuotientRing<A> where
A: EuclideanDomain,
impl<A> QuotientRing<A> where
A: EuclideanDomain,
Trait Implementations
sourceimpl<A> AbelianGroup for QuotientRing<A> where
A: EuclideanDomain,
impl<A> AbelianGroup for QuotientRing<A> where
A: EuclideanDomain,
sourcefn add(&self, elem1: &Self::Elem, elem2: &Self::Elem) -> Self::Elem
fn add(&self, elem1: &Self::Elem, elem2: &Self::Elem) -> Self::Elem
The additive sum of the given elements
sourcefn is_zero(&self, elem: &Self::Elem) -> bool
fn is_zero(&self, elem: &Self::Elem) -> bool
Checks if the given element is the additive identity of the ring.
sourcefn neg_assign(&self, elem: &mut Self::Elem)
fn neg_assign(&self, elem: &mut Self::Elem)
The element is changed to its additive inverse.
sourcefn add_assign(&self, elem1: &mut Self::Elem, elem2: &Self::Elem)
fn add_assign(&self, elem1: &mut Self::Elem, elem2: &Self::Elem)
The second element is added to the first one.
sourcefn sub(&self, elem1: &Self::Elem, elem2: &Self::Elem) -> Self::Elem
fn sub(&self, elem1: &Self::Elem, elem2: &Self::Elem) -> Self::Elem
The difference of the given elements.
sourcefn sub_assign(&self, elem1: &mut Self::Elem, elem2: &Self::Elem)
fn sub_assign(&self, elem1: &mut Self::Elem, elem2: &Self::Elem)
The second element is subtracted from the first one.
sourceimpl<A: Clone> Clone for QuotientRing<A> where
A: EuclideanDomain,
A::Elem: Clone,
impl<A: Clone> Clone for QuotientRing<A> where
A: EuclideanDomain,
A::Elem: Clone,
sourcefn clone(&self) -> QuotientRing<A>
fn clone(&self) -> QuotientRing<A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<A: Debug> Debug for QuotientRing<A> where
A: EuclideanDomain,
A::Elem: Debug,
impl<A: Debug> Debug for QuotientRing<A> where
A: EuclideanDomain,
A::Elem: Debug,
sourceimpl<A> Domain for QuotientRing<A> where
A: EuclideanDomain,
impl<A> Domain for QuotientRing<A> where
A: EuclideanDomain,
sourceimpl<A> Monoid for QuotientRing<A> where
A: EuclideanDomain,
impl<A> Monoid for QuotientRing<A> where
A: EuclideanDomain,
sourcefn is_one(&self, elem: &Self::Elem) -> bool
fn is_one(&self, elem: &Self::Elem) -> bool
Checks if the given element is the multiplicative identity.
sourcefn try_inv(&self, elem: &Self::Elem) -> Option<Self::Elem>
fn try_inv(&self, elem: &Self::Elem) -> Option<Self::Elem>
Calculates the multiplicative inverse of the given element if it exists.
sourcefn invertible(&self, elem: &Self::Elem) -> bool
fn invertible(&self, elem: &Self::Elem) -> bool
Returns true if the given element has a multiplicative inverse.
sourceimpl<A> Semigroup for QuotientRing<A> where
A: EuclideanDomain,
impl<A> Semigroup for QuotientRing<A> where
A: EuclideanDomain,
sourceimpl<A> UnitaryRing for QuotientRing<A> where
A: EuclideanDomain,
impl<A> UnitaryRing for QuotientRing<A> where
A: EuclideanDomain,
Auto Trait Implementations
impl<A> RefUnwindSafe for QuotientRing<A> where
A: RefUnwindSafe,
<A as Domain>::Elem: RefUnwindSafe,
impl<A> Send for QuotientRing<A> where
A: Send,
<A as Domain>::Elem: Send,
impl<A> Sync for QuotientRing<A> where
A: Sync,
<A as Domain>::Elem: Sync,
impl<A> Unpin for QuotientRing<A> where
A: Unpin,
<A as Domain>::Elem: Unpin,
impl<A> UnwindSafe for QuotientRing<A> where
A: UnwindSafe,
<A as Domain>::Elem: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more