pub fn read_document(
db: &Db,
grants: &dyn PathGrants,
docs: &dyn DocumentBackend,
path: &str,
) -> Result<RawDocument, WorkspaceError>Expand description
Read a granted document, attach a stream token for binary formats and restore the stored view state.