AdditiveGroup

Trait AdditiveGroup 

Source
pub trait AdditiveGroup:
    AdditiveMonoid
    + Sub<Self, Output = Self>
    + SubAssign
    + Neg<Output = Self> { }
Expand description

Interface for a group with identity represented by zero, and operation defined by + and -

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> AdditiveGroup for T
where T: AdditiveMonoid + Sub<Self, Output = Self> + SubAssign + Neg<Output = Self>,