Arithmetic

Trait Arithmetic 

Source
pub trait Arithmetic: SemiArithmetic {
    const ONE: &'static Self;
}

Required Associated Constants§

Source

const ONE: &'static 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 Arithmetic for bool

Source§

const ONE: &'static Self

Source§

impl Arithmetic for f32

Source§

const ONE: &'static Self

Source§

impl Arithmetic for f64

Source§

const ONE: &'static Self

Source§

impl Arithmetic for i8

Source§

const ONE: &'static i8

Source§

impl Arithmetic for i16

Source§

const ONE: &'static i16

Source§

impl Arithmetic for i32

Source§

const ONE: &'static i32

Source§

impl Arithmetic for i64

Source§

const ONE: &'static i64

Source§

impl Arithmetic for i128

Source§

const ONE: &'static i128

Source§

impl Arithmetic for isize

Source§

const ONE: &'static isize

Source§

impl Arithmetic for u8

Source§

const ONE: &'static u8

Source§

impl Arithmetic for u16

Source§

const ONE: &'static u16

Source§

impl Arithmetic for u32

Source§

const ONE: &'static u32

Source§

impl Arithmetic for u64

Source§

const ONE: &'static u64

Source§

impl Arithmetic for u128

Source§

const ONE: &'static u128

Source§

impl Arithmetic for usize

Source§

const ONE: &'static usize

Implementors§