Skip to main content

printable_byte

Function printable_byte 

Source
pub const fn printable_byte(b: u8) -> u8
Expand description

Map a byte to its printable ASCII representation.

Returns b unchanged for bytes in the printable ASCII range (0x20–0x7e), and b'.' for everything else. Used by hex viewers for the ASCII column.