Skip to main content

load_document

Function load_document 

Source
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).