Skip to main content

encode

Function encode 

Source
pub fn encode(data: impl AsRef<[u8]>) -> String
Expand description

Encodes a byte slice as a lowercase hexadecimal string.

ยงPanics

Never panics in practice: the output buffer is built from ASCII hex pairs in ENCODE_PAIR, so String::from_utf8 always succeeds.