collect_subterms

Function collect_subterms 

Source
fn collect_subterms<PT: ProtocolTypes, P: Fn(&Term<PT>) -> bool + Copy>(
    term: &Term<PT>,
    path: &mut TermPath,
    selectable: bool,
    filter: P,
    constraints: &TermConstraints,
    result: &mut Vec<TermPath>,
) -> usize
Expand description

Post-order half of find_all_sub_term_filtered: same bottom-up size fold and in-place path as sample_subterms, collecting every matching path instead of sampling one.