pub const fn encode_n<const N: usize>(src: &[u8; N]) -> ArrayStr<N>Expand description
Encodes bytes to lowercase hex at compile time.
ยงExamples
use omp_core::hex::{ArrayStr, encode_n};
const ENCODED: ArrayStr<5> = encode_n(b"Hello");
assert_eq!(&*ENCODED, "48656c6c6f");