[][src]Struct abstalg::QuotientField

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

A quotient field of an Euclidean domain by a principal ideal generated by an irreducible (prime) element.

Implementations

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

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

Creates a field from the given Euclidean domain and one of its irreducible (prime) element. This method does not check that the modulo is indeed irreducible. If this fails, then calculating the multiplicative inverse of some elements may panic.

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

Returns the base ring from which this field was constructed.

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

Returns the modulo element from which this field was constructed.

Trait Implementations

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

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

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

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

type Elem = R::Elem

The type of the elements of this domain.

impl<R: EuclideanDomain> EuclideanDomain for QuotientField<R>[src]

impl<R: EuclideanDomain> Field for QuotientField<R>[src]

impl<R: EuclideanDomain> IntegralDomain for QuotientField<R>[src]

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

Auto Trait Implementations

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

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

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

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

impl<R> UnwindSafe for QuotientField<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.