is_installed

Function is_installed 

Source
pub fn is_installed(name: &str) -> bool
Expand description

What: Query whether name appears in the cached set of installed packages.

Inputs:

  • name: Package name

Output:

  • true if name is present; false when absent or if the cache is unavailable.

Details:

  • Acquires a read lock and defers to HashSet::contains, returning false on lock poisoning.