Crate which[−][src]
which
A Rust equivalent of Unix command which(1).
Example:
To find which rustc executable binary is using:
use which::which; use std::path::PathBuf; let result = which::which("rustc").unwrap(); assert_eq!(result, PathBuf::from("/usr/bin/rustc"));
Structs
| CanonicalPath | An owned, immutable wrapper around a |
| Path | An owned, immutable wrapper around a |
Enums
| Error |
Functions
| which | Find a exectable binary’s path by name. |
| which_all | Find all binaries with |
| which_in | Find |
| which_in_all | Find all binaries with |
Type Definitions
| Result |