Trait Number

Source
pub trait Number:
    Cast<i32>
    + Default
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + EpsEq
    + Round
    + Pow<Self>
    + EucMod<Self>
    + Precise { }

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: Cast<i32> + Default + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + EpsEq + Round + Pow<Self> + EucMod<Self> + Precise> Number for T