Skip to content

Add fixed-sized arrays of scalars to struct fields - #378

Open
kraln wants to merge 2 commits into
planus-org:mainfrom
kraln:pr-struct-arrays
Open

Add fixed-sized arrays of scalars to struct fields#378
kraln wants to merge 2 commits into
planus-org:mainfrom
kraln:pr-struct-arrays

Conversation

@kraln

@kraln kraln commented Jul 28, 2026

Copy link
Copy Markdown

Struct fields may now be fixed-size arrays of scalars (e.g. [uint8:16]),
generated as [T; N] with inline Primitive/WriteAsPrimitive impls so the
elements are written contiguously inside the struct.

Non-scalar element types are rejected with an error.

Split out of !366

Checklist

  • Updated CHANGELOG.md with relevant changes
  • Added tests for any new/fixed functionality
  • Added/updated documentation for new/changed code
  • Checked that README.md still makes sense (and updated it if necessary)

kraln and others added 2 commits July 28, 2026 10:45
Struct fields may now be fixed-size arrays of scalars (e.g. [uint8:16]),
generated as [T; N] with inline Primitive/WriteAsPrimitive impls so the
elements are written contiguously inside the struct. Non-scalar element types
are rejected with an error.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Fixed-size array struct fields are shown as an array whose children are
the individual elements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant