Expand description
Non-zero sizes.
This crate provides the Size type representing non-zero sizes, along with
size! and const_size! macros used for constructing values of said type.
Macros§
- const_
size - Constantly constructs
Size, failing compilation if the provided size is zero. - size
- Constructs
Size, panicking if the provided size is zero.
Constants§
- NON_
ZERO - The error message used for when the provided size is zero.
Type Aliases§
- Size
- Represents non-zero sizes,
NonZero<usize>.