Function array_bytes::hex2bytes_unchecked

source ·
pub fn hex2bytes_unchecked<H>(hex: H) -> Vec<u8>
where H: AsRef<[u8]>,
Expand description

Just like hex2bytes but without checking.

§Examples

assert_eq!(
	array_bytes::hex2bytes_unchecked("0x4c6f7665204a616e6520466f7265766572"),
	*b"Love Jane Forever"
);