pub fn hex_n_into_unchecked<T, const N: usize>(hex: &str) -> Twhere
    T: From<[u8; N]>,
Expand description

Just like hex_n_into but without the checking.

Examples

#[derive(Debug, PartialEq)]
struct LJF([u8; 17]);
impl From<[u8; 17]> for LJF {
	fn from(array: [u8; 17]) -> Self {
		Self(array)
	}
}

assert_eq!(
	array_bytes::hex_n_into_unchecked::<LJF, 17>("0x4c6f7665204a616e6520466f7265766572"),
	LJF(*b"Love Jane Forever")
);