Trait Ring

Source
pub trait Ring:
    Copy
    + PartialOrd
    + MinMax
    + AdditiveGroup
    + Mul<Self, Output = Self>
    + MulAssign
    + Signed
    + MulAdd<Self, Self, Output = Self>
    + MulAddAssign<Self, Self> { }
Expand description

Interface for a (partially ordered) ring as a combination of an additive group and a distributive multiplication operation

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.

Implementations on Foreign Types§

Source§

impl Ring for f32

Source§

impl Ring for f64

Source§

impl Ring for i8

Source§

impl Ring for i16

Source§

impl Ring for i32

Source§

impl Ring for i64

Source§

impl<U> Ring for FixedI8<U>
where U: Unsigned + IsLessOrEqual<U6, Output = True> + LtU8,

Source§

impl<U> Ring for FixedI16<U>
where U: Unsigned + IsLessOrEqual<U14, Output = True> + LtU16,

Source§

impl<U> Ring for FixedI32<U>
where U: Unsigned + IsLessOrEqual<U30, Output = True> + LtU32,

Source§

impl<U> Ring for FixedI64<U>
where U: Unsigned + IsLessOrEqual<U62, Output = True> + LtU64,

Implementors§