[][src]Struct abstalg::QuotientRing

pub struct QuotientRing<R: EuclideanDomain> { /* fields omitted */ }

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

Implementations

impl<R: EuclideanDomain> QuotientRing<R>[src]

pub fn new(base: R, modulo: R::Elem) -> Self[src]

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

pub fn base(&self) -> &R[src]

Returns the base ring from which this ring was constructed.

pub fn modulo(&self) -> &R::Elem[src]

Returns the modulo element from which this ring was constructed.

Trait Implementations

impl<R: Clone + EuclideanDomain> Clone for QuotientRing<R> where
    R::Elem: Clone,
    R::Elem: Clone
[src]

impl<R: Debug + EuclideanDomain> Debug for QuotientRing<R> where
    R::Elem: Debug,
    R::Elem: Debug
[src]

impl<R: Default + EuclideanDomain> Default for QuotientRing<R> where
    R::Elem: Default,
    R::Elem: Default
[src]

impl<R: EuclideanDomain> Domain for QuotientRing<R>[src]

type Elem = R::Elem

The type of the elements of this domain.

impl<R: EuclideanDomain> UnitaryRing for QuotientRing<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for QuotientRing<R> where
    R: RefUnwindSafe,
    <R as Domain>::Elem: RefUnwindSafe

impl<R> Send for QuotientRing<R> where
    R: Send,
    <R as Domain>::Elem: Send

impl<R> Sync for QuotientRing<R> where
    R: Sync,
    <R as Domain>::Elem: Sync

impl<R> Unpin for QuotientRing<R> where
    R: Unpin,
    <R as Domain>::Elem: Unpin

impl<R> UnwindSafe for QuotientRing<R> where
    R: UnwindSafe,
    <R as Domain>::Elem: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.