format_hex/
lib.rs

1//! **format_hex** formats an [u8] to an hexadecimal multiline format, for human readability.
2//!
3//! ```
4//! let (l1, l2, l3) = FormatHex::new()
5//!    .push_hex(b"ABC")
6//!    .push_comment(" deb[")
7//!    .push_hex(b"DEFGHIJ")
8//!    .push_comment("]fin ")
9//!    .push_hex(b"KLMNzZ?\n\r\0")
10//!    .output();
11//! assert_eq!(l1, "ABC deb[DEFGHIJ]fin KLMNzZ?↳←�");
12//! assert_eq!(l2, "444.....4444444.....4444753000");
13//! assert_eq!(l3, "123.....456789A.....BCDEAAFAD0");
14//! ```
15pub mod format_hex;