summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec.rs
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2025-04-12 15:29:13 +0900
committerDanilo Krummrich <dakr@kernel.org>2025-04-22 17:29:37 +0200
commit85f8e98dbb0135d2bc1999c6015cd374fe2c69fa (patch)
tree7ce1d6e8be9e4d97abf3e1ab957cf0c540431225 /rust/kernel/alloc/kvec.rs
parentc3152988c047a7b6abb10d4dc5e24fafbabe8b7e (diff)
rust: alloc: allow coercion from `Box<T>` to `Box<dyn U>` if T implements U
This enables the creation of trait objects backed by a Box, similarly to what can be done with the standard library. Suggested-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Link: https://lore.kernel.org/r/20250412-box_trait_objs-v3-1-f67ced62d520@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec.rs')
0 files changed, 0 insertions, 0 deletions