Skip to main content

pattern_from_protobuf

Function pattern_from_protobuf 

Source
pub fn pattern_from_protobuf(
    pb: &MatchRecognizePatternNode,
) -> Result<Pattern, String>
Expand description

Build a Pattern from its protobuf representation, rejecting one whose compiled size would be absurd. The size check is on the whole decoded pattern, since nesting is what defeats the per-construct caps.