pub fn parse_bytes(input: &[u8], opts: &ParseOptions) -> Result<Document>Expand description
Byte-slice sibling of parse_str.
With ParseOptions::auto_transcode true (the default), non-UTF-8
input is detected and converted to UTF-8 before parsing — see that
field’s docs for the supported set. Set auto_transcode = false to
require UTF-8 input and reject anything else with
ErrorDomain::Encoding.