AdditiveMonoid

Trait AdditiveMonoid 

Source
pub trait AdditiveMonoid:
    Sized
    + PartialEq
    + Sum
    + 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.

Implementors§

Source§

impl<T> AdditiveMonoid for T
where T: Sized + PartialEq + Sum + Add<Self, Output = Self> + AddAssign + Zero,