pub fn display_bytes<'b>(bytes: &'b [u8]) -> impl Display + 'bExpand description
Wrap a byte slice in an adapter which implements Display.
This adapter will print any string-decodable sequences of useful length in the byte stream, and all non-decodable byte sequences in a human-readable format.
The format is deliberately unspecified in the type. If you want to specify a format, use
DisplayBytesConfig directly or one of the statics in the crate root.