pub fn encode(data: impl AsRef<[u8]>) -> StringExpand description
Encodes a byte slice as a lowercase hexadecimal string.
ยงPanics
Panics if the output capacity exceeds isize::MAX bytes.
The output buffer is built from ASCII ENCODE_PAIR entries, so String::from_utf8 always succeeds.