Function tallytree::utilstring::to_hex[][src]

pub fn to_hex(data: &[u8]) -> Result<String, String>
Expand description

Get a hex string representation of a u8 array.

Example:

use tallytree::utilstring::to_hex;
assert_eq!("f00d", to_hex(&[0xf0, 0x0d]).unwrap());