gecko-dev/third_party/rust/which
2017-10-01 09:54:59 +00:00
..
src
.cargo-checksum.json No bug - Revendor rust dependencies 2017-10-01 09:54:59 +00:00
.cargo-ok No bug - Revendor rust dependencies 2017-10-01 09:54:59 +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.