Function array_bytes::hex2array_unchecked

source ·
pub fn hex2array_unchecked<H, const N: usize>(hex: H) -> [u8; N]
where H: AsRef<[u8]>,
Expand description

Just like hex2array but without the checking.

§Examples

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