aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorAlexandre Courbot <[email protected]>2025-06-16 03:34:07 +0000
committerDanilo Krummrich <[email protected]>2025-06-18 21:09:41 +0000
commitf86c0036c7de5fc379115809c653dfd57c453330 (patch)
tree94b6184db07c0b98387f55db78ffbc962f735234 /rust/helpers
parentrust: alloc: implement `Borrow` and `BorrowMut` for `Vec` (diff)
downloadkernel-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')
0 files changed, 0 insertions, 0 deletions