find_unique_match

Function find_unique_match 

Source
pub fn find_unique_match<PT: ProtocolTypes>(
    path_to_search: &[usize],
    eval_tree: &EvalTree,
    whole_term: &Term<PT>,
    is_to_search_in_list: bool,
) -> Result<(usize, bool), Error>
Expand description

Search and locate to_search := eval_tree[path_to_search].encode in root_eval:=eval_tree[vec![]].encode (=whole_term.encode(ctx)) such that the match corresponds to path_to_search (when to_search occurs multiple times). Also returns a boolean flag envcountered_get_symbol indicating whether a get symbol is between the root and the path_to_search, in which case, inconsistencies might occur.