Field

Trait Field 

Source
pub trait Field: Domain + EuclideanRing {
    // Provided method
    fn div(&self, lhs: &Self::Element, rhs: &Self::Element) -> Self::Element { ... }
}
Expand description

Trait for rings that are fields, i.e. where every nonzero element has an inverse.

Note that fields must be commutative.

Provided Methods§

Source

fn div(&self, lhs: &Self::Element, rhs: &Self::Element) -> Self::Element

Computes the division lhs / rhs, where rhs != 0.

Panics if rhs = 0.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§