array_bytes

Function hex2bytes_unchecked

Source
pub fn hex2bytes_unchecked<H>(hex: H) -> SmallVec<[u8; 64]>
where H: AsRef<[u8]>,
Expand description

Just like hex2bytes but without checking.

ยงExamples

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