Skip to main content

hex_encode

Function hex_encode 

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

Encode bytes as lowercase hexadecimal text.

ยงExamples

use sim_lib_net_core::hex_encode;

assert_eq!(hex_encode(&[0xde, 0xad]), "dead");