A Rust equivalent of Unix command "which". Locate installed executable in cross platforms.
To find which rustc executable binary is using.
use which; let result = which.unwrap; assert_eq!;
After enabling the
regexfeature, find all cargo subcommand executables on the path:
use which_re; which_re.unwrap .for_each;
The documentation is available online.