pub const fn decode_n<const N: usize>(src: &[u8; N]) -> Option<Array<N>>Expand description
Decodes hex at compile time with validation.
ยงExamples
use omp_core::hex::{Array, decode_n};
let decoded = decode_n(b"48656c6c6f").unwrap();
assert_eq!(&*decoded, b"Hello");