Zero

Defines an additive identity element for T.

Fully qualified path: core::num::traits::zero::Zero

pub trait Zero<T>

Trait functions

zero

Returns the additive identity element of T, 0.

Fully qualified path: core::num::traits::zero::Zero::zero

fn zero() -> T

is_zero

Returns true if self is equal to the additive identity.

Fully qualified path: core::num::traits::zero::Zero::is_zero

fn is_zero(self: @T) -> bool

is_non_zero

Returns false if self is equal to the additive identity.

Fully qualified path: core::num::traits::zero::Zero::is_non_zero

fn is_non_zero(self: @T) -> bool