Skip to main content

Numeric

Trait Numeric 

Source
pub trait Numeric:
    Arithmetic
    + PartialEq
    + Debug
    + Min
    + Max
    + Clamp
    + Mix
    + Abs<Output = Self> { }
Expand description

+, -, *, /, %, 0, ==, min, max, clamp, mix, abs

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> Numeric for T
where T: Arithmetic + PartialEq + Debug + Min + Max + Clamp + Mix + Abs<Output = T>,