FloatOps

Trait FloatOps 

Source
pub trait FloatOps:
    Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + Rem<Output = Self>
    + Neg<Output = Self>
    + PartialEq
    + PartialOrd
    + AddAssign
    + SubAssign
    + MulAssign
    + DivAssign
    + RemAssign
    + Sized
    + Zero
    + Float
    + SimdComplexField { }
Expand description

A trait that tells how many operators could be used on a floating number

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 FloatOps for f32

Source§

impl FloatOps for f64

Implementors§