[][src]Function c0sv::read_document

pub fn read_document(source: &[u8]) -> Result<Document<'_>, Error>

Try to read a whole document contained in the byte array. The document may have any amount of trailing data, which will be ignored.