Skip to main content

build_dynamic_visibility

Function build_dynamic_visibility 

Source
pub fn build_dynamic_visibility(
    toggles: &HashMap<String, bool>,
    repo_name_to_filter: &HashMap<String, String>,
) -> HashMap<String, bool>
Expand description

What: Merge per-filter toggles from settings.conf with defaults for all ids from repos.

Inputs:

  • toggles: Parsed results_filter_show_* entries (canonical key → bool).
  • repo_name_to_filter: Lowercase pacman repo name → canonical filter key.

Output:

  • Canonical filter key → visible in results.

Details:

  • Default is true when a key is absent from toggles.