Skip to main content

encode

Function encode 

Source
pub fn encode(bytes: &[u8]) -> String
Expand description

Encode a byte slice as a lowercase hex string.

The output length is exactly bytes.len() * 2. The encoding is deterministic: identical byte slices always produce the identical string, regardless of platform.