pub fn is_binary<P: AsRef<Path>>(path: P) -> Result<bool>Expand description
Test whether or not a file at a given path is a binary.
Example:
use binaryornot;
if binaryornot::is_binary("/path/to/some/file").expect("unable to read file") {
println!("a binary!");
}