/// Walk on Hashmap-like based by keys (group_indexes) and records values and return mutable end-node of this way
Walk on Hashmap-like based by keys (group_indexes) and records values and return mutable end-node of this way
Walk on Hashmap - like based by keys ( group_indexes ) and records values and return mutable end - node of this way
fn walk_by_keys<'a>(root_node: &'a mut serde_yaml::Value, group_indexes: &[String], rec: &HashMap<String, String>) -> &'a mut serde_yaml::Value {
            let mut curr_link = root_node;
            for k in group_indexes {
                let kv = rec[k].clone();
                curr_link = &mut curr_link[kv];
            }
            curr_link
    }
fn walk_by_keys < ' a > ( root_node : & ' a mut serde_yaml :: Value , group_indexes : & [ String ] , rec : & HashMap < String , String > ) -> & ' a mut serde_yaml :: Value { let mut curr_link = root_node ; for k in group_indexes { let kv = rec [ k ] . clone ( ) ; curr_link = & mut curr_link [ kv ] ; } curr_link }
Walk on Hashmap-like based by keys (group_indexes) and records values and return mutable end-node of this way
Walk on Hashmap - like based by keys ( group_indexes ) and records values and return mutable end - node of this way
root_node
&'a mut serde_yaml::Value
group_indexes
&[String]
rec
&HashMap<String, String>