diff options
| author | Christian Schrefl <[email protected]> | 2025-04-21 22:17:59 +0000 |
|---|---|---|
| committer | Benno Lossin <[email protected]> | 2025-05-01 16:10:54 +0000 |
| commit | 2f7c73825f8f435ebdfb2cfa3b01cfa2b1c79041 (patch) | |
| tree | 2bf14c1f061dfefc6061078e4ed1a8d24a1037a3 /scripts/rustdoc_test_builder.rs | |
| parent | rust: pin-init: add `cast_[pin_]init` functions to change the initialized type (diff) | |
| download | kernel-2f7c73825f8f435ebdfb2cfa3b01cfa2b1c79041.tar.gz kernel-2f7c73825f8f435ebdfb2cfa3b01cfa2b1c79041.zip | |
rust: pin-init: Add the `Wrapper` trait.
This trait allows creating `PinInitializers` for wrapper or new-type
structs with the inner value structurally pinned, when given the
initializer for the inner value.
Implement this trait for `UnsafeCell` and `MaybeUninit`.
Signed-off-by: Christian Schrefl <[email protected]>
Link: https://github.com/Rust-for-Linux/pin-init/pull/37/commits/3ab4db083bd7b41a1bc23d937224f975d7400e50
[ Reworded commit message into imperative mode, fixed typo and fixed
commit authorship. - Benno ]
Signed-off-by: Benno Lossin <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions
