Skip to main content

PrimitiveZero

Trait PrimitiveZero 

Source
pub trait PrimitiveZero {
    const ZERO: Self;
}
Expand description

A trait defined for primitives which have a zero value.

Required Associated Constants§

Source

const ZERO: Self

The number zero.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PrimitiveZero for f32

Source§

const ZERO: Self = 0.0

Source§

impl PrimitiveZero for f64

Source§

const ZERO: Self = 0.0

Source§

impl PrimitiveZero for i8

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for i16

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for i32

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for i64

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for i128

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for isize

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for u8

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for u16

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for u32

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for u64

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for u128

Source§

const ZERO: Self = 0

Source§

impl PrimitiveZero for usize

Source§

const ZERO: Self = 0

Implementors§