pub struct QuotientRing<A> where
    A: EuclideanDomain
{ /* private fields */ }
Expand description

A quotient ring of an Euclidean domain by a principal ideal.

Implementations

Creates a new quotient ring from the given Euclidean domain and one of its element.

Returns the base ring from which this ring was constructed.

Returns the modulo element from which this ring was constructed.

Trait Implementations

The additive identity element of the ring.

The additive inverse of the given element.

The additive sum of the given elements

Checks if the given element is the additive identity of the ring.

The element is changed to its additive inverse.

The second element is added to the first one.

Doubles the given element in place.

The difference of the given elements.

The second element is subtracted from the first one.

Returns an integer multiple of the given element.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type of the elements of this domain.

Checks if the given object is a member of the domain.

Checks if the given objects represent the same element of the set.

The multiplicative identity element of the ring.

Checks if the given element is the multiplicative identity.

Calculates the multiplicative inverse of the given element if it exists.

Returns true if the given element has a multiplicative inverse.

The multiplicative product of the given elements.

The first element is multiplied with the second one in place.

Squares the given element in place.

Returns the integer multiple of the one element in the ring.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.