read_document

Function read_document 

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

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