nbytes 0.1.0

Rust compile-time evaluation of byte unit conversions
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented1 out of 1 items with examples
  • Size
  • Source code size: 19.16 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 635.95 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • enarx/nbytes
    2 4 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • npmccallum github:enarx:owners

Workflow Status Average time to resolve an issue Percentage of issues still open Maintenance

nbytes

Welcome to nbytes!

The nbytes crate exists to provide compile-time evaluation of various unit conversions to bytes. For example:

use nbytes::bytes;

assert_eq!(bytes![2; KiB], 2048);
assert_eq!(bytes![2; kB], 2000);

License: Apache-2.0