Trait NumType

Source
pub trait NumType:
    Debug
    + Copy
    + Clone
    + PartialEq
    + PartialOrd
    + Default
    + Zero
    + One
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self> { }

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

Source§

impl NumType for f64

Source§

impl NumType for u32

Source§

impl NumType for u64

Implementors§