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

#178 in Value formatting

Download history 162/week @ 2024-03-12 163/week @ 2024-03-19 112/week @ 2024-03-26 178/week @ 2024-04-02 78/week @ 2024-04-09 77/week @ 2024-04-16 66/week @ 2024-04-23 66/week @ 2024-04-30 58/week @ 2024-05-07 72/week @ 2024-05-14 79/week @ 2024-05-21 63/week @ 2024-05-28 75/week @ 2024-06-04 65/week @ 2024-06-11 82/week @ 2024-06-18 158/week @ 2024-06-25

390 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