iquery::commands

Function ensure_tree_field_is_set

Source
pub fn ensure_tree_field_is_set(
    selectors: &mut Vec<Selector>,
    tree_name: Option<String>,
) -> Result<(), Error>
Expand description

Expand selectors with a tree name. If a tree name is given, the selectors will be guaranteed to include the tree name given unless they already have a tree name set. If no tree name is given and the selectors carry no tree name, then they’ll be updated to target all tree names associated with the component.