3 unstable releases

Uses old Rust 2015

0.2.1 Aug 23, 2019
0.2.0 Jun 21, 2018
0.1.0 Jul 23, 2017

#147 in Value formatting

Download history 90/week @ 2023-12-17 34/week @ 2023-12-24 36/week @ 2023-12-31 83/week @ 2024-01-07 79/week @ 2024-01-14 89/week @ 2024-01-21 70/week @ 2024-01-28 137/week @ 2024-02-04 117/week @ 2024-02-11 161/week @ 2024-02-18 156/week @ 2024-02-25 167/week @ 2024-03-03 164/week @ 2024-03-10 152/week @ 2024-03-17 113/week @ 2024-03-24 193/week @ 2024-03-31

649 downloads per month
Used in 5 crates (4 directly)

MIT/Apache

26KB
452 lines

display_bytes Travis Crates.io

Human-readable display of byte sequences.

Supports printing of both UTF-8 and ASCII-only sequences.

extern crate display_bytes;

use display_bytes::{display_bytes, display_bytes_string};

fn main() {
    let bytes = b"Hello, world!\x89\x90\xAB\xCD";
    println!("{:?}", bytes);
    println!("{}", display_bytes(bytes));
    assert_eq!(display_bytes_string(bytes),
               "Hello, world! {{ 89 90 AB CD }}");
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps