pub fn is_installed(name: &str) -> boolExpand description
What: Query whether name appears in the cached set of installed packages.
Inputs:
name: Package name
Output:
trueifnameis present;falsewhen absent or if the cache is unavailable.
Details:
- Acquires a read lock and defers to
HashSet::contains, returning false on lock poisoning.