Skip to main content

Zero

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 = 0.0

Source§

impl Zero for f64

The constant 0.

Source§

const ZERO: f64 = 0.0

Source§

impl Zero for i8

The constant 0.

§Examples

See here.

Source§

const ZERO: i8 = 0

Source§

impl Zero for i16

The constant 0.

§Examples

See here.

Source§

const ZERO: i16 = 0

Source§

impl Zero for i32

The constant 0.

§Examples

See here.

Source§

const ZERO: i32 = 0

Source§

impl Zero for i64

The constant 0.

§Examples

See here.

Source§

const ZERO: i64 = 0

Source§

impl Zero for i128

The constant 0.

§Examples

See here.

Source§

const ZERO: i128 = 0

Source§

impl Zero for isize

The constant 0.

§Examples

See here.

Source§

const ZERO: isize = 0

Source§

impl Zero for u8

The constant 0.

§Examples

See here.

Source§

const ZERO: u8 = 0

Source§

impl Zero for u16

The constant 0.

§Examples

See here.

Source§

const ZERO: u16 = 0

Source§

impl Zero for u32

The constant 0.

§Examples

See here.

Source§

const ZERO: u32 = 0

Source§

impl Zero for u64

The constant 0.

§Examples

See here.

Source§

const ZERO: u64 = 0

Source§

impl Zero for u128

The constant 0.

§Examples

See here.

Source§

const ZERO: u128 = 0

Source§

impl Zero for usize

The constant 0.

§Examples

See here.

Source§

const ZERO: usize = 0

Implementors§