pub fn from_doc<T: Schema>(text: &str, doc: &Doc) -> Result<Read<T>, Errors>
Reads a parsed document as T; text is its source, for positions.
T
text