Number

Trait Number 

Source
pub trait Number:
    Clone
    + Copy
    + Debug
    + Default
    + PartialEq
    + Send
    + Sized
    + Sync
    + Add<Output = Self>
    + AddAssign
    + Sub<Output = Self>
    + SubAssign
    + Mul<Output = Self>
    + MulAssign
    + Div
    + DivAssign
    + Neg<Output = Self>
    + Sum
    + Product {
    // Required method
    fn one() -> Self;
}

Required Methods§

Source

fn one() -> 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 Number for f64

Source§

fn one() -> Self

Implementors§