fn is_executable(path: &Path) -> bool
Returns true when path points to an executable regular file.
true
path
On Unix this checks execute mode bits. On non-Unix targets this checks common executable filename extensions.