aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorAlice Ryhl <[email protected]>2023-05-17 20:08:14 +0000
committerMiguel Ojeda <[email protected]>2023-05-31 16:53:10 +0000
commit47329ba14b5aac1ac975544eee71ecc888557d23 (patch)
tree2f643c9685a471d7a2b4c4d8738772cdc4a35470 /rust/helpers.c
parentrust: sync: add `Arc::ptr_eq` (diff)
downloadkernel-47329ba14b5aac1ac975544eee71ecc888557d23.tar.gz
kernel-47329ba14b5aac1ac975544eee71ecc888557d23.zip
rust: sync: implement `AsRef<T>` for `Arc<T>`
This trait lets you use `Arc<T>` in code that is generic over smart pointer types. The `AsRef` trait should be implemented on all smart pointers. The standard library also implements it on the ordinary `Arc`. Co-developed-by: Wedson Almeida Filho <[email protected]> Signed-off-by: Wedson Almeida Filho <[email protected]> Signed-off-by: Alice Ryhl <[email protected]> Reviewed-by: Martin Rodriguez Reboredo <[email protected]> Reviewed-by: Benno Lossin <[email protected]> Reviewed-by: Gary Guo <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions