/// Create a constructor that matches a single edge with the given label and
/// applies the pattern to the subtree this edge points to.
Create a constructor that matches a single edge with the given label and
applies the pattern to the subtree this edge points to.
Create a constructor that matches a single edge with the given label and applies the pattern to the subtree this edge points to .
pub fn match_only<L>(label: L, subpattern: Self) -> Self
    where
        L: AsRef<[u8]>,
    {
        let mut map = BTreeMap::new();
        map.insert(label.as_ref().to_vec(), subpattern.0);
        Pattern(PatternKind::MatchFinite(map))
    }
pub fn match_only < L > ( label : L , subpattern : Self ) -> Self where L : AsRef < [ u8 ] > , { let mut map = BTreeMap :: new ( ) ; map . insert ( label . as_ref ( ) . to_vec ( ) , subpattern . 0 ) ; Pattern ( PatternKind :: MatchFinite ( map ) ) }
Create a constructor that matches a single edge with the given label and
applies the pattern to the subtree this edge points to.
Create a constructor that matches a single edge with the given label and applies the pattern to the subtree this edge points to .
label
L
subpattern
Self