Trait AdditiveMonoid

Source
pub trait AdditiveMonoid:
    Sized
    + PartialEq
    + Add<Self, Output = Self>
    + AddAssign
    + Zero { }
Expand description

Set with identity represented by zero and (associative) binary operation defined by +

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 AdditiveMonoid for f32

Source§

impl AdditiveMonoid for f64

Source§

impl AdditiveMonoid for i8

Source§

impl AdditiveMonoid for i16

Source§

impl AdditiveMonoid for i32

Source§

impl AdditiveMonoid for i64

Source§

impl<U> AdditiveMonoid for FixedI8<U>
where U: Unsigned + LtU8,

Source§

impl<U> AdditiveMonoid for FixedI16<U>
where U: Unsigned + LtU16,

Source§

impl<U> AdditiveMonoid for FixedI32<U>
where U: Unsigned + LtU32,

Source§

impl<U> AdditiveMonoid for FixedI64<U>
where U: Unsigned + LtU64,

Implementors§