Skip to main content

decode_owned

Function decode_owned 

Source
pub fn decode_owned(bytes: Vec<u8>) -> Result<String, Error>
Expand description

decode on a buffer, which becomes the text without a copy when it is UTF-8 (the byte order mark, if any, is removed in place).

ยงErrors

As decode.