Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/razrfalcon/strict-num
A collection of bounded numeric types.
https://github.com/razrfalcon/strict-num
Last synced: 2 months ago
JSON representation
A collection of bounded numeric types.
- Host: GitHub
- URL: https://github.com/razrfalcon/strict-num
- Owner: RazrFalcon
- License: mit
- Created: 2022-07-23T12:07:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T11:24:22.000Z (8 months ago)
- Last Synced: 2024-04-25T12:33:28.463Z (8 months ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 8
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# strict-num
![Build Status](https://github.com/RazrFalcon/strict-num/workflows/Build/badge.svg)
[![Crates.io](https://img.shields.io/crates/v/strict-num.svg)](https://crates.io/crates/strict-num)
[![Documentation](https://docs.rs/strict-num/badge.svg)](https://docs.rs/strict-num)
[![Rust 1.56+](https://img.shields.io/badge/rust-1.56+-orange.svg)](https://www.rust-lang.org)A collection of bounded numeric types.
Includes:
- `FiniteF32`
- `FiniteF64`
- `NonZeroPositiveF32`
- `NonZeroPositiveF64`
- `PositiveF32`
- `PositiveF64`
- `NormalizedF32`
- `NormalizedF64`Unlike `f32`/`f64`, all float types implement `Ord`, `PartialOrd` and `Hash`,
since it's guaranteed that they all are finite.## License
MIT