pub fn encode_hex(bytes: &[u8]) -> String
Encodes a byte array into a hex-encoded string.
Panics if the call to write! returns an error.
write!