StructFieldInit#

class StructFieldInit#

One field’s worth of initializer for the per-field pack_struct() overload.

Implicitly constructible from anything convertible to Expr — a scalar field’s value; a gather() packet whose elements fill an array field; or a single expression containing one implicit-var placeholder _, swept over the array field’s extent (index arithmetic on _ is allowed) — and from a FieldRef, to copy a whole same-typed field out of another struct.