diff options
| author | Mohamad Alsadhan <mo@sdhn.cc> | 2026-04-28 16:10:53 +0300 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-05-11 00:58:33 +0300 |
| commit | de54c2cb052952df2a6f91617471d1f02f213d4e (patch) | |
| tree | f93cca091dc01529b863d754dc122a808cd41502 /include | |
| parent | 04828a538da2bed3150116929306f849a3337a37 (diff) | |
| download | linux-de54c2cb052952df2a6f91617471d1f02f213d4e.tar.xz | |
rust: pin-init: extend `impl_zeroable_option` macro to handle generics
Improve impl_zeroable_option macro to handle generic impls for types
like `&T`, `&mut T`, `NonNull<T>`, and others (for which `Option<T>`
is guaranteed to be zeroable) with similar approach to
`impl_zeroable`.
Also, update old declarations to use generics e.g. `NonZeroU8` to
`NonZero<u8>`.
Signed-off-by: Mohamad Alsadhan <mo@sdhn.cc>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260428-pin-init-sync-v1-4-07f9bd3859fb@garyguo.net
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
