SemiArithmetic

Trait SemiArithmetic 

Source
pub trait SemiArithmetic:
    'static
    + Sized
    + Clone
    + PartialEq
    + PartialOrd {
    const ZERO: &'static Self;
}

Required Associated Constants§

Source

const ZERO: &'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 SemiArithmetic for bool

Source§

const ZERO: &'static Self

Source§

impl SemiArithmetic for f32

Source§

const ZERO: &'static Self

Source§

impl SemiArithmetic for f64

Source§

const ZERO: &'static Self

Source§

impl SemiArithmetic for i8

Source§

const ZERO: &'static i8

Source§

impl SemiArithmetic for i16

Source§

const ZERO: &'static i16

Source§

impl SemiArithmetic for i32

Source§

const ZERO: &'static i32

Source§

impl SemiArithmetic for i64

Source§

const ZERO: &'static i64

Source§

impl SemiArithmetic for i128

Source§

const ZERO: &'static i128

Source§

impl SemiArithmetic for isize

Source§

const ZERO: &'static isize

Source§

impl SemiArithmetic for u8

Source§

const ZERO: &'static u8

Source§

impl SemiArithmetic for u16

Source§

const ZERO: &'static u16

Source§

impl SemiArithmetic for u32

Source§

const ZERO: &'static u32

Source§

impl SemiArithmetic for u64

Source§

const ZERO: &'static u64

Source§

impl SemiArithmetic for u128

Source§

const ZERO: &'static u128

Source§

impl SemiArithmetic for usize

Source§

const ZERO: &'static usize

Implementors§