Arithmetic

Trait Arithmetic 

Source
pub trait Arithmetic: Sized
where Self: Add<Self, Output = Self> + for<'a> Add<&'a Self, Output = Self> + AddAssign + for<'a> AddAssign<&'a Self> + Sub<Output = Self> + for<'a> Sub<&'a Self, Output = Self> + SubAssign + for<'a> SubAssign<&'a Self> + Mul<Output = Self> + for<'a> Mul<&'a Self, Output = Self> + MulAssign + for<'a> MulAssign<&'a Self> + Div<Output = Self> + for<'a> Div<&'a Self, Output = Self> + DivAssign + for<'a> DivAssign<&'a Self> + Neg + NegAssign + LowerExp,
{ }
Expand description

Trait representing the arithmetic operations (e.g. addition, subtraction, multiplication division, negation).

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 Arithmetic for f64

Source§

impl Arithmetic for Complex<f64>

Implementors§