pub trait Zero {
    const ZERO: Self;

    // Required method
    fn is_zero(&self) -> bool;
}

Required Associated Constants§

source

const ZERO: Self

The zero value for this type.

Required Methods§

source

fn is_zero(&self) -> bool

Whether the value is zero.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Zero for u8

source§

const ZERO: Self = 0u8

source§

fn is_zero(&self) -> bool

source§

impl Zero for u16

source§

const ZERO: Self = 0u16

source§

fn is_zero(&self) -> bool

source§

impl Zero for u32

source§

const ZERO: Self = 0u32

source§

fn is_zero(&self) -> bool

source§

impl Zero for u64

source§

const ZERO: Self = 0u64

source§

fn is_zero(&self) -> bool

source§

impl Zero for u128

source§

const ZERO: Self = 0u128

source§

fn is_zero(&self) -> bool

source§

impl Zero for usize

source§

const ZERO: Self = 0usize

source§

fn is_zero(&self) -> bool

Implementors§