It's the same as the difference between static dispatch via generics
and dynamic dispatch via boxed trait objects. At the moment, Rust only
has an equivalent to `&mut Trait` for closures and no uniquely typed
unboxed closures like C++.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to