[−][src]Function artichoke_backend::extn::stdlib::securerandom::hex::escape_byte
#[must_use]pub const fn escape_byte(byte: u8) -> &'static str
Map from a u8
to a hex encoded string literal.
Examples
assert_eq!(scolapasta_hex::escape_byte(0), "00"); assert_eq!(scolapasta_hex::escape_byte(0x20), "20"); assert_eq!(scolapasta_hex::escape_byte(255), "ff");