Thanks to visit codestin.com
Credit goes to docs.rs

is_bin

Function is_bin 

Source
pub fn is_bin(path: &Path) -> Result<bool, Error>
Expand description

Detect if path is the provided pwn binary