Additive

Trait Additive 

Source
pub trait Additive:
    Sized
    + Copy
    + Add<Self, Output = Self>
    + AddAssign<Self>
    + Sum
    + Sub<Self, Output = Self>
    + SubAssign<Self>
    + Zero { }
Expand description

+, -, 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§

Source§

impl<T> Additive for T
where T: Sized + Copy + Add<Self, Output = Self> + AddAssign<Self> + Sum + Sub<Self, Output = Self> + SubAssign<Self> + Zero,