pub fn decode_latin1<'a>(bytes: &'a [u8]) -> Cow<'a, str>
Expand description

Converts bytes whose unsigned value is interpreted as Unicode code point (i.e. U+0000 to U+00FF, inclusive) to UTF-8.

Borrows if input is ASCII-only. Performs a single heap allocation otherwise.