diff options
| author | Alexandre Courbot <[email protected]> | 2025-06-16 03:34:07 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-06-18 21:09:41 +0000 |
| commit | f86c0036c7de5fc379115809c653dfd57c453330 (patch) | |
| tree | 94b6184db07c0b98387f55db78ffbc962f735234 /rust/helpers/platform.c | |
| parent | rust: alloc: implement `Borrow` and `BorrowMut` for `Vec` (diff) | |
| download | kernel-f86c0036c7de5fc379115809c653dfd57c453330.tar.gz kernel-f86c0036c7de5fc379115809c653dfd57c453330.zip | |
rust: alloc: implement `Borrow` and `BorrowMut` for `KBox`
Implement `Borrow<T>` and `BorrowMut<T>` for `KBox<T>`. This allows
`KBox<T>` to be used in generic APIs asking for types implementing those
traits. `T` and `&mut T` also implement those traits allowing users to
use either owned, borrowed and heap-owned values.
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Signed-off-by: Alexandre Courbot <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions
