Function array_bytes::hex2array_unchecked [−][src]
pub fn hex2array_unchecked<const N: usize>(hex: impl AsRef<str>) -> [u8; N]
Expand description
just like hex2bytes_unchecked
but to a fixed length array
Examples
assert_eq!( array_bytes::hex2array_unchecked("0x49204c6f766520596f75"), *b"I Love You" );