Commit 259ffbf
committed
internal: pin_data: support tuple struct projections
Add plumbing for tuple struct support to `#[pin_data]` by generating
tuple struct projections and tuple-aware pin-data metadata.
Keep the projection API native to Rust tuple structs, so projected
fields are accessed as `.0`, `.1`, etc. instead of introducing
synthetic public field names.
Signed-off-by: Mohamad Alsadhan <mo@sdhn.cc>1 parent d5ac5a8 commit 259ffbf
9 files changed
Lines changed: 488 additions & 112 deletions
File tree
- internal/src
- src
- tests/ui
- compile-fail/pin_data
- expand
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments