forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: add support for trait objects in
Ref
s.
This allows, for example, the automatic coercion from `Ref<T>` to `Ref<dyn U>` when `U` is a trait implemented by `T`. It also allows `Ref<dyn U>` to be used as the receiver in a trait object. These traits are also implemented by `Arc`, and this is in preparation for replacing all usages of `Arc` with `Ref`, which is needed before we can remove `Arc` from the `alloc` crate. Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters