- The
nonzero!
macro now enforces that its arguments are integer literals. Any other non-zeroable types (even if they implementnonzero_ext::NonZeroAble
) can not be accepted. This fixes #17.
- Support for
NonZeroI*
types - nownonzero_ext
should include support for all non-zero integer types that the standard library exports. - Support for using
nonzero!
in a const context. - This CHANGELOG file. I have tried to backfill the major changes since initial release, but there are bound to be gaps.
- The
as_nonzero
andas_nonzero_unchecked
methods on theNonZeroAble
trait are now namedinto_nonzero
andinto_nonzero_unchecked
, respectively. The old methods still exist, but are deprecated.
- Ability to use the
nonzero_ext
crate inno_std
mode; to use it without thestd
library, disable default features when pulling this crate into your project.