Skip to main content

extract

Function extract 

Source
pub fn extract(path: &str, bytes: &[u8]) -> FileFacts
Expand description

Extract the facts for one file.

Never panics and never fails: anything it cannot read — a binary file, a file over MAX_FILE_BYTES, an unknown extension, a parse that overruns PARSE_BUDGET_MS — degrades to hash, language and line count.