Skip to main content

to_hex_bytes

Function to_hex_bytes 

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

Render a byte slice as lowercase hex. format!-with-{:02x} allocates per byte; the hand-roll here is the workspace’s canonical hex encoder. Use this everywhere a byte slice needs hex rendering.