Trait core::num::Zero [] [src]

pub trait Zero: Sized {
    fn zero() -> Self;
}
Unstable (zero_one #27739)

: unsure of placement, wants to use associated constants

Types that have a "zero" value.

This trait is intended for use in conjunction with Add, as an identity: x + T::zero() == x.

Required Methods

fn zero() -> Self

Unstable (zero_one #27739)

: unsure of placement, wants to use associated constants

The "zero" (usually, additive identity) for this type.

Implementors