Skip to main content

u8_to_hex

Function u8_to_hex 

Source
pub fn u8_to_hex(bytes: &[u8]) -> String
Expand description

Convert a &[u8] byte array to a lower-case, no-sepreator hex string.

ยงExample:

assert_eq!(&u8_to_hex(b"\xaa\xbb"), "aabb");