Skip to content

Add NonZero and NonMax types, generic over PrimitiveInt

Choose a tag to compare

@Techcable Techcable released this 24 Aug 10:35
bab3396

Added

  • Add wrapping_add and wrapping_sub functions (wznskrrp)
  • Add NonZero struct to mirror core::num::NonZero, but made generic over PrimitiveInt (xooqvysu)
  • Add NonMax struct to mirror the NonZero struct (msuozwwt)
    • Offers alternative to the nonmax crate.
    • Implemented in terms of NonZero type as stdlib doesn't offer it natively.

Changed

  • Bump MSRV to 1.71