Implements rust's Display trait to format a u8 slice as many hex editors
do. This might be useful for dumping a binary blob for debugging purposes.
[![Build Status][tr-img]][tr]
### Documentation
The API documentation can be found here:
[https://docs.rs/crate/hexplay/](https://docs.rs/crate/hexplay/).
### Example
Here's an example that prints a hex view of a slice of some vector's data:
```rust
extern crate hexplay;
use hexplay::HexViewBuilder;
fn main() {
// The buffer we want to display
let data : Vec<u8> = (0u8..200u8).collect();
// Build a new HexView using the provider builder
let view = HexViewBuilder::new(&data[40..72])
.address_offset(40)
.row_width(16)
.finish();
println!("{}", view);
}
```
This will result in the following output:
```text
or higher.
### License
Hexplay is licensed under the terms of the [MIT license][mit].
[crates]: https://crates.io/crates/hexplay
[mit]: https://en.wikipedia.org/wiki/MIT_License
[rust-v13]: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1130-2016-11-10
[tr-img]: https://travis-ci.org/tmoers/hexplay.svg?branch=master
[tr]: https://travis-ci.org/tmoers/hexplay