[go: up one dir, main page]

[][src]Function infer::is_document

pub fn is_document(buf: &[u8]) -> bool

Determines whether a buffer is a document type.

Examples

use std::fs;
assert!(infer::is_document(&fs::read("testdata/sample.docx").unwrap()));