ArithmeticOps

Trait ArithmeticOps 

Source
pub trait ArithmeticOps:
    Neg<Output = Self>
    + Add<Self, Output = Self>
    + AddAssign<Self>
    + Sub<Self, Output = Self>
    + SubAssign<Self>
    + Mul<Self, Output = Self>
    + MulAssign<Self>
    + Div<Self, Output = Self>
    + DivAssign<Self>
    + Rem<Self, Output = Self>
    + Pow
    + FromF64
    + Sqrt<Output = Self>
    + CubicRoot<Output = Self>
    + Trigonometry<Output = Self>
    + InverseTrigonometry<Output = Self>
    + Decibel
    + HasZero
    + HasOne
    + HasHalf
    + HasSign
    + Sum
    + Display
    + Debug
    + Clone
    + Copy
    + PartialOrd
    + PartialEq
where Self: Sized,
{ }

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> ArithmeticOps for T
where T: Neg<Output = Self> + Add<T, Output = T> + AddAssign<T> + Sub<T, Output = Self> + SubAssign<T> + Mul<T, Output = Self> + MulAssign<T> + Div<T, Output = Self> + DivAssign<T> + Rem<T, Output = Self> + Pow + FromF64 + Sqrt<Output = Self> + CubicRoot<Output = Self> + Trigonometry<Output = Self> + InverseTrigonometry<Output = Self> + Decibel + HasZero + HasOne + HasHalf + HasSign + Sum + Display + Debug + Clone + Copy + PartialOrd + PartialEq,