strict-num

Crates.iostrict-num
lib.rsstrict-num
version0.2.0
sourcesrc
created_at2022-07-23 12:13:57.869782
updated_at2023-12-23 08:50:07.257578
descriptionA collection of bounded numeric types
homepage
repositoryhttps://github.com/RazrFalcon/strict-num
max_upload_size
id631380
size33,924
Yevhenii Reizner (RazrFalcon)

documentation

https://docs.rs/strict-num/

README

strict-num

Build Status Crates.io Documentation Rust 1.56+

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

Commit count: 8

cargo fmt