Skip to main content

is_binary_file

Function is_binary_file 

Source
pub fn is_binary_file(path: &str) -> bool
Expand description

Returns true if the file is likely a binary file. Checks extension first (zero I/O), falls back to content inspection.