2 ms·
Trait objects are kind of a pain and there are some improvements that could be made there. Here's a random example: if you want a trait object with more than o
by steveklabnik 6y ago
Trait objects are kind of a pain and there are some improvements that could be made there.
Here's a random example: if you want a trait object with more than one trait, that only works today if one of the two is an auto trait: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=49039ad3198d4162eddc932c98a0f50b https://play.rust-lang.org/?version=stable&mode=debug&editio...