Function html5ever::tendril::encoding_rs::mem::decode_latin1
source ยท 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.
Only available if the alloc
feature is enabled (enabled by default).