Trait std::num::Zero [] [src]

pub trait Zero {
    fn zero() -> Self;
}
Deprecated since 1.11.0

: no longer used for Iterator::sum

🔬 This is a nightly-only experimental API.   (zero_one)

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

Deprecated since 1.11.0

: no longer used for Iterator::sum

🔬 This is a nightly-only experimental API.   (zero_one)

unsure of placement, wants to use associated constants

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

Implementors