nora_endian 0.1.2

Crate to make dealing with endianness convenient.
Documentation
  • Coverage
  • 1.64%
    1 out of 61 items documented1 out of 61 items with examples
  • Size
  • Source code size: 6.83 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 21.74 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Demindiro/nora_endian
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Demindiro

Nora endian

Yet another crate to deal with endianness, though focused on simplicity

Example

use nora_endian::u32le;

let flags = u32le::from(1234);
let index = u32le::from(0);

// Easy operations on & comparisons between le/be and native types
if flags & 1 == 0 {
   // ...
}

let index_plus_one_u32: u32 = 1 + index;
let index_plus_one_u32le: u32le = index + 1;