Skip to main content

core_to_binding_match_arm

Function core_to_binding_match_arm 

Source
pub fn core_to_binding_match_arm(
    core_prefix: &str,
    variant_name: &str,
    fields: &[FieldDef],
) -> String
Expand description

Generate a match arm for core -> binding direction. When the binding also has data variants, destructure and forward fields. When the binding is unit-variant-only, discard core data with ...