pub fn find_installed_component(name: &str) -> Option<PathBuf>
Expand description

Given a Rust component name, search through all of the available toolchains on the system to see if it is installed. It will return the path of the component that has the latest version.

Examples found in repository?
examples/main.rs (line 4)
3
4
5
6
fn main() {
    println!("{:?}", find_installed_component("rustfmt"));
    println!("{:?}", find_installed_component("cargo-clippy"));
}