diff options
| author | Benno Lossin <[email protected]> | 2025-05-23 14:51:00 +0000 |
|---|---|---|
| committer | Benno Lossin <[email protected]> | 2025-06-11 19:13:56 +0000 |
| commit | e93a238605348bc40fed77ba5582e311376d113b (patch) | |
| tree | 08baf0c1e16fa34f184eb38135905e5d838b56ff /rust/pin-init/examples/static_init.rs | |
| parent | rust: pin-init: add `zeroed()` & `Zeroable::zeroed()` functions (diff) | |
| download | kernel-e93a238605348bc40fed77ba5582e311376d113b.tar.gz kernel-e93a238605348bc40fed77ba5582e311376d113b.zip | |
rust: pin-init: implement `ZeroableOption` for `&T` and `&mut T`
`Option<&T>` and `Option<&mut T>` are documented [1] to have the `None`
variant be all zeroes.
Link: https://doc.rust-lang.org/stable/std/option/index.html#representation [1]
Link: https://github.com/Rust-for-Linux/pin-init/pull/56/commits/5ef1638c79e019d3dc0c62db5905601644c2e60a
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Benno Lossin <[email protected]>
Diffstat (limited to 'rust/pin-init/examples/static_init.rs')
0 files changed, 0 insertions, 0 deletions
