Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xaeroxe/nonzero_signed
https://github.com/xaeroxe/nonzero_signed
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xaeroxe/nonzero_signed
- Owner: Xaeroxe
- Created: 2018-09-21T19:11:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T00:47:06.000Z (9 months ago)
- Last Synced: 2024-10-30T16:52:20.753Z (3 months ago)
- Language: Rust
- Size: 789 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nonzero_signed [![Crates.io](https://img.shields.io/crates/v/nonzero_signed.svg)](https://crates.io/crates/nonzero_signed)
## 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.