Trait primitives::zero::Zero

source ·
pub trait Zero: PartialEq + Sized {
    // Required method
    fn zero() -> Self;

    // Provided method
    fn is_zero(&self) -> bool { ... }
}

Required Methods§

source

fn zero() -> Self

Provided Methods§

source

fn is_zero(&self) -> bool

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Zero for f32

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for f64

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for i8

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for i16

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for i32

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for i64

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for i128

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for isize

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for u8

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for u16

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for u32

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for u64

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for u128

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for usize

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for U256

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

source§

impl Zero for U512

source§

fn zero() -> Self

source§

fn is_zero(&self) -> bool

Implementors§