pub const fn encode_generic<const UPPER: bool>(
src: &[u8],
dst: &mut [MaybeUninit<u8>],
) -> Result<(), InvalidInput>Expand description
encode() or decode(), but const-evaluable at the cost of performance.
Macro encode! is useful when you want to encode a byte array to
hexadecimal string in const contexts, such as creating a const variable or
a static variable.
ยงErrors
The input and output lengths do not match (2 * src.len() == dst.len()).