| Crates.io | hex-slice |
| lib.rs | hex-slice |
| version | 0.1.4 |
| created_at | 2016-05-03 11:09:01.24759+00 |
| updated_at | 2018-03-02 22:35:51.808542+00 |
| description | Extends the std::fmt::*Hex traits to slices |
| homepage | |
| repository | https://github.com/cstorey/hex-slice/ |
| max_upload_size | |
| id | 4959 |
| size | 7,922 |
Renders a slice of integers (or anything else that supports the LowerHex or UpperHex traits) as hex. For example, this:
extern crate hex_slice;
use hex_slice::AsHex;
fn main() {
let foo = vec![0u32, 1 ,2 ,3];
println!("{:x}", foo.as_hex());
}
Displays: [0 1 2 3] on standard output (available with cargo run --example trivial).