Skip to main content

hex_to_u8

Function hex_to_u8 

Source
pub fn hex_to_u8(hex: &str) -> Vec<u8> 
Expand description

Convert a hex string with no whitespace or other sepreator into &[u8].

§Example:

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