Implement Fn traits for Rc and Arc#105414
Conversation
These use the same semantics as the implementations for `&F` by only covering `F: Fn`. This change enables passing reference-counted closures to functions that expect `Fn + 'static` or `Fn + Clone`.
|
(rustbot has picked a reviewer for you, use r? to override) |
|
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
Thanks for the links. I guess we can add this to the Rust 2.0 bucket list. |
These use the same semantics as the implementations for
&Fby only coveringF: Fn.This change enables passing reference-counted closures to functions that expect
Fn + 'staticorFn + Clone.ACP: rust-lang/libs-team#143