hex-view

NOTE: As of Rust 1.26.0, this crate is no longer necessary because an &[u8] can be formatted as hex using the :x? and :X? formatters.

Easily format a &[u8] as hex.

```rust use hex_view::HexView;

let ff00slice: &[u8] = &[255, 0]; asserteq!(format!("{:x}", HexView::from(&ff00_slice)), "ff00")

```

HexView::from also works on anything that implements AsRef<[u8]>, such as a &Vec<u8>:

```rust use hex_view::HexView;

let ff00vec: Vec = vec![255, 0]; asserteq!(format!("{:X}", HexView::from(&ff00_vec)), "FF00") ```

License: MIT/Apache-2.0