Skip to main content

emit_group_arm_read

Function emit_group_arm_read 

Source
fn emit_group_arm_read(
    reader_var: &str,
    leaves: &[FieldDef],
    schema: &ParsedSchema,
) -> String
Expand description

Read an inline union group arm’s leaf fields into an object literal matching its synthesized interface: { leaf1: <read>, leaf2: <read> }.

The leaves live in the ENCLOSING struct’s sections, so they read from the same reader_var at their own slot offsets (a group has no own pointer).