@blp I believe this mostly comes down to variance and drop checking. Rust infers variance and "dropck" based on the usage of `T` in data structures. This doesn't apply to `fn`s, since they cannot interact with or "store" `T` directly but only via parameters.
See https://doc.rust-lang.org/nomicon/subtyping.html
In reply to
Sean
@olsonseank@hachyderm.io
I'm a programmer who loves Rust. I'm a dancer and play traditional Irish music. I'm an "urbanist" and love bicycles and public transit. I enjoy woodworking and machining and I'm learning to make Irish flutes and pennywhistles.
hachyderm.io
@olsonseank@hachyderm.io
·
6d ago
0
2
0
Conversation (2)
Showing 0 of 2 cached locally.
Syncing comments from the remote thread. 2 more replies are still loading.
Loading comments...