pub fn load_document(path: &Path, kind: PreviewKind) -> Option<DocumentData>Expand description
Load the document behind kind. None when the file can’t be read or the
kind is media (media is decoded by the tree, not here).
pub fn load_document(path: &Path, kind: PreviewKind) -> Option<DocumentData>Load the document behind kind. None when the file can’t be read or the
kind is media (media is decoded by the tree, not here).