gecko-dev/third_party/rust/which
2017-09-27 00:32:01 +00:00
..
src
.cargo-checksum.json No bug - Revendor rust dependencies 2017-09-27 00:32:01 +00:00
.cargo-ok No bug - Revendor rust dependencies 2017-09-27 00:32:01 +00:00
Cargo.toml
LICENSE.txt
README.md

which

A Rust equivalent of Unix command "which".

Example

To find which rustc exectable binary is using.

use which::which;

let result = which::which("rustc").unwrap();
assert_eq!(result, PathBuf::from("/usr/bin/rustc"));

Documentation

The documentation is available online.