Skip to main content

bstr

Function bstr 

Source
pub fn bstr(s: &(impl AsRef<[u8]> + ?Sized)) -> impl Display + '_
Expand description

Display bytes as valid UTF-8 string.

This maps invalid UTF-8 to the Unicode replacement character.