Trait num_traits::Zero
[−]
[src]
pub trait Zero {
fn zero() -> Self;
}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
Returns the zero (usually, additive identity) for this type.