read-primitives 0.1.1

read-primitives provides traits to read primitive types from any type that implements std::io::Read
Documentation
  • Coverage
  • 100%
    55 out of 55 items documented1 out of 55 items with examples
  • Size
  • Source code size: 19.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.96 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • heberlein/read-primitives
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • heberlein

read-primitives

read-primitives adds several extension traits, that make it easy to read primitive types from any type that implements std::io::Read

Examples


    fn main() {
        let bytes: [u8; 8] = [24, 45, 68, 84, 251, 33, 9, 64];
        let float = bytes.as_slice().read_le_f64().unwrap();
        printf!("{float}");
    }

3.141592653589793