Skip to main content

Number

Trait Number 

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

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