Snap for 7302986 from 3f00182ae337968fd9064d8f3cc770221386a82c to sc-mainline-release Change-Id: Ia4758380185f21b32076120977c8a6e6dcf34bb5
A Rust equivalent of Unix command “which”. Locate installed executable in cross platforms.
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"));
The documentation is available online.