Crate non_zero_size

Crate non_zero_size 

Source
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>.