print_str_as_escaped

Function print_str_as_escaped 

Source
pub fn print_str_as_escaped(raw: &[u8]) -> String
Expand description

Render an entire byte string as a printable escaped string (the EscapeString(std::string) overload). Invalid UTF-8 bytes are preserved and escaped individually.