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: f32 = 0f32

source§

impl ConstZero for f64

source§

const ZERO: f64 = 0f64

source§

impl ConstZero for i8

source§

const ZERO: i8 = 0i8

source§

impl ConstZero for i16

source§

const ZERO: i16 = 0i16

source§

impl ConstZero for i32

source§

const ZERO: i32 = 0i32

source§

impl ConstZero for i64

source§

const ZERO: i64 = 0i64

source§

impl ConstZero for i128

source§

const ZERO: i128 = 0i128

source§

impl ConstZero for isize

source§

const ZERO: isize = 0isize

source§

impl ConstZero for u8

source§

const ZERO: u8 = 0u8

source§

impl ConstZero for u16

source§

const ZERO: u16 = 0u16

source§

impl ConstZero for u32

source§

const ZERO: u32 = 0u32

source§

impl ConstZero for u64

source§

const ZERO: u64 = 0u64

source§

impl ConstZero for u128

source§

const ZERO: u128 = 0u128

source§

impl ConstZero for usize

source§

const ZERO: usize = 0usize

source§

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

source§

const ZERO: Wrapping<T> = _

source§

impl<T> ConstZero for Complex<T>
where T: Clone + Num + ConstZero,

source§

const ZERO: Complex<T> = Self::ZERO

Implementors§