pub trait ConstZero: Zero {
    const ZERO: Self;
}
Expand description

Defines an associated constant representing the additive identity element for Self.

Required Associated Constants§

source

const ZERO: Self

The additive identity element of Self, 0.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConstZero for f32

source§

const ZERO: Self = 0f32

source§

impl ConstZero for f64

source§

const ZERO: Self = 0f64

source§

impl ConstZero for i8

source§

const ZERO: Self = 0i8

source§

impl ConstZero for i16

source§

const ZERO: Self = 0i16

source§

impl ConstZero for i32

source§

const ZERO: Self = 0i32

source§

impl ConstZero for i64

source§

const ZERO: Self = 0i64

source§

impl ConstZero for i128

source§

const ZERO: Self = 0i128

source§

impl ConstZero for isize

source§

const ZERO: Self = 0isize

source§

impl ConstZero for u8

source§

const ZERO: Self = 0u8

source§

impl ConstZero for u16

source§

const ZERO: Self = 0u16

source§

impl ConstZero for u32

source§

const ZERO: Self = 0u32

source§

impl ConstZero for u64

source§

const ZERO: Self = 0u64

source§

impl ConstZero for u128

source§

const ZERO: Self = 0u128

source§

impl ConstZero for usize

source§

const ZERO: Self = 0usize

source§

impl<T: ConstZero> ConstZero for Wrapping<T>
where Wrapping<T>: Add<Output = Wrapping<T>>,

source§

const ZERO: Self = _

Implementors§