Skip to main content

find

Function find 

Source
pub fn find(
    dir: &Path,
    name: &str,
    req: Option<&VersionReq>,
    pin: Option<&Version>,
) -> Vec<InstalledPackage>
Expand description

The installed copies of package name to use: an exact pin if given, otherwise the highest installed version matching req; failing both, the flat (hand-placed) executables of that name. Several only when a package is placed flat as one dre-<kind>-<name> per plugin.