hex-slice

Crates.iohex-slice
lib.rshex-slice
version0.1.4
sourcesrc
created_at2016-05-03 11:09:01.24759
updated_at2018-03-02 22:35:51.808542
descriptionExtends the std::fmt::*Hex traits to slices
homepage
repositoryhttps://github.com/cstorey/hex-slice/
max_upload_size
id4959
size7,922
Ceri Storey (cstorey)

documentation

https://cstorey.github.io/hex-slice/hex_slice/index.html

README

hex-slice

Build Status

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).

Commit count: 34

cargo fmt