diff options
| author | Gary Guo <gary@garyguo.net> | 2026-05-12 13:09:50 +0100 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-05-18 12:18:06 +0100 |
| commit | 27693a56e8a697f78db535aad2d5267f286e1f51 (patch) | |
| tree | a1ee67ef184a29b6be1b0747e349532b03852ef1 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | df1827babd665ea7039383dbc5c671b66a65c1ec (diff) | |
rust: pin-init: internal: use marker on drop guard type for pinned fields
Instead of projecting the created reference, simply create drop guards with
different marker types and have the `let_binding()` method of guards of
different marker produce different type instead.
This allows more flexible lifetime as this is now controlled by the guard.
This will be needed when implementing self-referential fields.
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
