pub fn decode(bytes: &[u8]) -> Cow<'_, str>
Convenience wrapper returning Cow::Borrowed for pure-ASCII input, Cow::Owned otherwise.
Cow::Borrowed
Cow::Owned