Function puffin::algebra::bitstrings::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, 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).