Trait relp_num::NonZero[][src]

pub trait NonZero {
    fn is_not_zero(&self) -> bool;
}
Expand description

Nonzero values

Implementors should not be zero.

This trait is used for debug asserts. Values in sparse data structures should never be zero, and requiring that they implement num_traits::Zero prohibits writing number types that can’t represent the value 0.

The num_traits::Zero trait is for types that can be zero, this trait is for types that can be a value other than zero. They may or may not be able to represent zero.

Required methods

Whether the value is not equal to zero.

Should always be true in the context in which it is called.

Implementations on Foreign Types

Implementors