better-num 0.1.0

Better numeric types in rust
Documentation
  • Coverage
  • 0%
    0 out of 261 items documented0 out of 1 items with examples
  • Size
  • Source code size: 6.03 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • adryzz/better-num
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • adryzz

better-num

Rust numeric types that are easier to use

Note: due to space constraints, anything > 16 bits cannot be implemented, as it would take multiple gigabytes of space

NOTE: rustc or rust-analyzer may not like the size of some of these enum definitions, you have been warned.

Example:

use better_num::english::u8::U8English;

fn main() {
    dbg!(U8English::TwoHundredFiftyFour - U8English::TwoHundredThirtyFour);

    // Twenty
}

Check the examples folder for more examples.

Due to the large size of the definitions, and to improve compilation speed you have to select exactly the types you want to use as features.

For example, if i want the U16English type, i have to select the features english and u16.

Language support

  • English
  • French
  • German
  • Italian

more to be added

License

This code is licensed under the MIT license.