Skip to main content

escape_bytes

Function escape_bytes 

Source
pub fn escape_bytes(data: &[u8]) -> impl Display + '_
Expand description

Renders bytes as text, writing each non-printable byte as \xHH.

Printable ASCII passes through, so a database key reads as itself around its binary separators. The raw database admin commands read and write this form.