pub const Union = struct layout: ContainerLayouttag_type: ?typebacking_integer: ?typeAlways null if layout != .@"packed".
field_names: []const [:0]const u8field_types: []const typeGuaranteed to have the same length as field_names.
field_attrs: []const FieldAttributesGuaranteed to have the same length as field_names.
decl_names: []const [:0]const u8825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844 pub const Union = struct {
layout: ContainerLayout,
tag_type: ?type,
/// Always `null` if `layout != .@"packed"`.
backing_integer: ?type,
field_names: []const [:0]const u8,
/// Guaranteed to have the same length as `field_names`.
field_types: []const type,
/// Guaranteed to have the same length as `field_names`.
field_attrs: []const FieldAttributes,
decl_names: []const [:0]const u8,
pub const FieldAttributes = struct {
/// `null` means the field alignment is not explicitly specified. The field will still
/// be aligned to at least `@alignOf` the field type.
@"align": ?usize = null,
};
}
This data structure is used by the Zig language code generation and therefore must be kept in sync with the compiler implementation.