linux/rust/pin-init/src
Benno Lossin 42415d163e rust: pin-init: add references to previously initialized fields
After initializing a field in an initializer macro, create a variable
holding a reference that points at that field. The type is either
`Pin<&mut T>` or `&mut T` depending on the field's structural pinning
kind.

[ Applied fixes to devres and rust_driver_pci sample - Benno]
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Benno Lossin <lossin@kernel.org>
2025-09-11 23:30:02 +02:00
..
__internal.rs rust: pin-init: feature-gate the `stack_init_reuse` test on the `std` feature 2025-06-11 21:13:56 +02:00
alloc.rs
lib.rs rust: pin-init: add code blocks to `[try_][pin_]init!` macros 2025-09-11 23:26:44 +02:00
macros.rs rust: pin-init: add references to previously initialized fields 2025-09-11 23:30:02 +02:00