/// Attach `tag` to all index entries rooted at qualifier to reflect the possibility
/// that tagging an entry at an unknown index might also tag them.
Attach `tag` to all index entries rooted at qualifier to reflect the possibility
that tagging an entry at an unknown index might also tag them.
Attach ` tag ` to all index entries rooted at qualifier to reflect the possibility that tagging an entry at an unknown index might also tag them .
fn attach_tag_weakly<F>(&mut self, tag: Tag, qualifier: &Rc<Path>, make_condition: F)
    where
        F: Fn(Rc<AbstractValue>) -> Rc<AbstractValue>,
    {
        let value_map = self.current_environment.value_map.clone();
        for (path, old_value) in value_map.iter().filter(|(p, _)| p.is_rooted_by(qualifier)) {
            let mut subsequent_selectors = Vec::new();
            if let Some(index_value) = self.extract_index_and_subsequent_selectors(
                path,
                qualifier,
                &mut subsequent_selectors,
            ) {
                let join_condition = make_condition(index_value.clone());
                let new_value = join_condition
                    .conditional_expression(old_value.add_tag(tag), old_value.clone());
                self.current_environment
                    .value_map
                    .insert_mut(path.clone(), new_value);
            }
        }
    }
fn attach_tag_weakly < F > ( & mut self , tag : Tag , qualifier : & Rc < Path > , make_condition : F ) where F : Fn ( Rc < AbstractValue > ) -> Rc < AbstractValue > , { let value_map = self . current_environment . value_map . clone ( ) ; for ( path , old_value ) in value_map . iter ( ) . filter ( | ( p , _ ) | p . is_rooted_by ( qualifier ) ) { let mut subsequent_selectors = Vec :: new ( ) ; if let Some ( index_value ) = self . extract_index_and_subsequent_selectors ( path , qualifier , & mut subsequent_selectors , ) { let join_condition = make_condition ( index_value . clone ( ) ) ; let new_value = join_condition . conditional_expression ( old_value . add_tag ( tag ) , old_value . clone ( ) ) ; self . current_environment . value_map . insert_mut ( path . clone ( ) , new_value ) ; } } }
Attach `tag` to all index entries rooted at qualifier to reflect the possibility
that tagging an entry at an unknown index might also tag them.
Attach ` tag ` to all index entries rooted at qualifier to reflect the possibility that tagging an entry at an unknown index might also tag them .
&mut self
tag
Tag
qualifier
&Rc<Path>
make_condition
F