Files
linux/rust/kernel
Benno Lossin 5657c3a9fa rust: add ZeroableOption and implement it instead of Zeroable for Option<Box<T, A>>
When making pin-init its own crate, `Zeroable` will no longer be defined
by the kernel crate and thus implementing it for `Option<Box<T, A>>` is
no longer possible due to the orphan rule.
For this reason introduce a new `ZeroableOption` trait that circumvents
this problem.

Signed-off-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Tested-by: Andreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250308110339.2997091-11-benno.lossin@proton.me
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-03-16 21:59:18 +01:00
..
2025-03-08 23:04:38 +01:00
2025-03-10 15:12:17 +01:00
2024-09-30 13:02:29 +02:00
2025-02-13 16:58:58 +01:00
2024-12-20 17:19:26 +01:00
2024-12-20 17:21:04 +01:00
2025-03-10 15:12:17 +01:00
2024-10-08 15:44:36 +02:00
2025-03-08 23:04:38 +01:00
2024-12-20 17:19:26 +01:00
2025-03-08 23:04:38 +01:00
2025-03-06 20:59:45 +01:00
2024-11-10 23:58:00 +01:00
2024-11-04 16:21:44 -05:00