/// Match the specified subset of edges and apply the corresponding patterns
/// to subtrees these edges point to.
Match the specified subset of edges and apply the corresponding patterns
to subtrees these edges point to.
Match the specified subset of edges and apply the corresponding patterns to subtrees these edges point to .
pub fn match_any<L>(edge_patterns: impl Iterator<Item = (L, Pattern)>) -> Self
    where
        L: AsRef<[u8]>,
    {
        let entries: BTreeMap<_, _> = edge_patterns
            .map(|(l, p)| (l.as_ref().to_vec(), p.0))
            .collect();
        Pattern(PatternKind::MatchFinite(entries))
    }
pub fn match_any < L > ( edge_patterns : impl Iterator < Item = ( L , Pattern ) > ) -> Self where L : AsRef < [ u8 ] > , { let entries : BTreeMap < _ , _ > = edge_patterns . map ( | ( l , p ) | ( l . as_ref ( ) . to_vec ( ) , p . 0 ) ) . collect ( ) ; Pattern ( PatternKind :: MatchFinite ( entries ) ) }
Match the specified subset of edges and apply the corresponding patterns
to subtrees these edges point to.
Match the specified subset of edges and apply the corresponding patterns to subtrees these edges point to .
edge_patterns
impl Iterator<Item = (L, Pattern)>