#non-zero #signed #zero #numbers

deprecated nonzero_signed

DEPRECATED Rust's std lib will stabilize 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.

4 stable releases

Uses old Rust 2015

1.0.3 Jan 22, 2019
1.0.2 Sep 21, 2018

#17 in #non-zero

Download history 365/week @ 2023-12-14 300/week @ 2023-12-21 154/week @ 2023-12-28 237/week @ 2024-01-04 361/week @ 2024-01-11 298/week @ 2024-01-18 218/week @ 2024-01-25 156/week @ 2024-02-01 326/week @ 2024-02-08 414/week @ 2024-02-15 322/week @ 2024-02-22 350/week @ 2024-02-29 488/week @ 2024-03-07 328/week @ 2024-03-14 499/week @ 2024-03-21 414/week @ 2024-03-28

1,752 downloads per month

MIT/Apache

7KB
91 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.

No runtime deps