format_hex 0.1.1

Formats an [u8] to an hexadecimal multiline format, for human readability
Documentation
  • Coverage
  • 71.43%
    5 out of 7 items documented1 out of 6 items with examples
  • Size
  • Source code size: 5.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • flogbl/format_hex
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • flogbl

format_hex

format_hex formats an [u8] to an hexadecimal multiline format, for human readability.

let (l1, l2, l3) = FormatHex::new()
   .push_hex(b"ABC")
   .push_comment(" deb[")
   .push_hex(b"DEFGHIJ")
   .push_comment("]fin ")
   .push_hex(b"KLMNzZ?\n\r\0")
   .output();
assert_eq!(l1, "ABC deb[DEFGHIJ]fin KLMNzZ?↳←�");
assert_eq!(l2, "444.....4444444.....4444753000");
assert_eq!(l3, "123.....456789A.....BCDEAAFAD0");

License: MIT