Number

Trait Number 

Source
pub trait Number:
    Add<Output = Self>
    + Sub<Output = Self>
    + Div<Output = Self>
    + PartialEq
    + Copy {
    // 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 u32

Source§

fn one() -> Self

Source§

impl Number for usize

Source§

fn one() -> Self

Implementors§