Skip to content

feat: add array emitter for [T; N] fields#30

Merged
uael merged 2 commits intomainfrom
feat/emit-array
Mar 9, 2026
Merged

feat: add array emitter for [T; N] fields#30
uael merged 2 commits intomainfrom
feat/emit-array

Conversation

@uael
Copy link
Copy Markdown
Owner

@uael uael commented Mar 9, 2026

Summary

  • Add an array() helper function in emit.rs that constructs [T; N] from an array of Emit<T> builders
  • Re-export array from the crate root alongside other emitter helpers (near, list, maybe, etc.)

Test plan

  • cargo test passes
  • Verify array([Jmp::make(...), Jmp::make(...)]) works in derive-generated make() calls

🤖 Generated with Claude Code

uael and others added 2 commits March 9, 2026 08:15
Add an `array()` helper that constructs a `[T; N]` from an array of
`Emit<T>` builders, enabling fixed-size array fields in derive-generated
`make()` factories.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Cover primitive arrays, arrays of Near<T> with nested data,
and clone behavior for regions containing array fields.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@uael uael merged commit fdce217 into main Mar 9, 2026
7 checks passed
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