#non-zero

deprecated nonzero_signed

DEPRECATED Rust's std lib has stabilized their own signed NonZero types in Rust 1.34, please use those instead if you're using Rust 1.34 or greater. You can find them in std::num or core::num. Description A small set of types for signed nonzero integers.

5 stable releases

Uses old Rust 2015

1.0.4 May 15, 2024
1.0.3 Jan 22, 2019
1.0.2 Sep 21, 2018

#18 in #non-zero

Download history 419/week @ 2024-07-22 339/week @ 2024-07-29 357/week @ 2024-08-05 707/week @ 2024-08-12 375/week @ 2024-08-19 473/week @ 2024-08-26 397/week @ 2024-09-02 347/week @ 2024-09-09 376/week @ 2024-09-16 460/week @ 2024-09-23 354/week @ 2024-09-30 14/week @ 2024-10-07 279/week @ 2024-10-14 300/week @ 2024-10-21 352/week @ 2024-10-28 290/week @ 2024-11-04

1,222 downloads per month

MIT/Apache

7KB
84 lines

nonzero_signed Crates.io

DEPRECATED

Rust's std lib stabilized their own signed NonZero types in Rust 1.34, please use those instead if you're using Rust 1.34 or greater. You can find them in std::num or core::num.

Description

This rust crate provides a small set of types for signed nonzero integers.

This is implemented by wrapping nonzero unsigned types and casting as needed, these wrappers are guaranteed to be zero cost because the casts are zero cost.

Provided with a dual license of the MIT and Apache 2.0 licenses.

Dependencies

~4KB