Skip to main content

variant_match_pattern

Function variant_match_pattern 

Source
pub fn variant_match_pattern(variant: &ParsedEnumVariant) -> String
Expand description

Generate the destructuring match pattern for a variant. E.g. "Active", "Text(v0)", "Image { name, width }".