pub(crate) fn group_arm_leaves<'a>(
sd: &'a StructDef,
uf: &FieldDef,
) -> Option<&'a [FieldDef]>Expand description
If union field uf of struct sd is an inline group arm, return its leaf
fields (from the structured union_arms view). None for Void/single-type
arms.
A capnp group arm carries an inlined anonymous struct whose leaf fields are
allocated their own slots in the ENCLOSING struct’s data/pointer sections;
each leaf FieldDef therefore already carries a correct slot_offset +
section (extracted by the same field_def_from_slot path as a normal
field), so build/parse can read/write them directly on the enclosing
reader/builder.