Trait Zero

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

Provides the constant 0.

Required Associated Constants§

Source

const ZERO: 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 Zero for f32

The constant 0.

Source§

const ZERO: f32 = 0f32

Source§

impl Zero for f64

The constant 0.

Source§

const ZERO: f64 = 0f64

Source§

impl Zero for i8

The constant 0.

§Examples

See here.

Source§

const ZERO: i8 = 0i8

Source§

impl Zero for i16

The constant 0.

§Examples

See here.

Source§

const ZERO: i16 = 0i16

Source§

impl Zero for i32

The constant 0.

§Examples

See here.

Source§

const ZERO: i32 = 0i32

Source§

impl Zero for i64

The constant 0.

§Examples

See here.

Source§

const ZERO: i64 = 0i64

Source§

impl Zero for i128

The constant 0.

§Examples

See here.

Source§

const ZERO: i128 = 0i128

Source§

impl Zero for isize

The constant 0.

§Examples

See here.

Source§

const ZERO: isize = 0isize

Source§

impl Zero for u8

The constant 0.

§Examples

See here.

Source§

const ZERO: u8 = 0u8

Source§

impl Zero for u16

The constant 0.

§Examples

See here.

Source§

const ZERO: u16 = 0u16

Source§

impl Zero for u32

The constant 0.

§Examples

See here.

Source§

const ZERO: u32 = 0u32

Source§

impl Zero for u64

The constant 0.

§Examples

See here.

Source§

const ZERO: u64 = 0u64

Source§

impl Zero for u128

The constant 0.

§Examples

See here.

Source§

const ZERO: u128 = 0u128

Source§

impl Zero for usize

The constant 0.

§Examples

See here.

Source§

const ZERO: usize = 0usize

Implementors§