by PoignardAzur · 2y ago · 0 comments
There were a bunch of instances in my code where I really wanted to specify "this trait returns an arbitrary iterator of X" instead of "this trait returns Vec<X>". It's nice to finally be able to write it that way.
The opaqueness means that the consumer of the API cannot name the type and cannot store it inside of a struct (without making it generic (moving the issue one level higher), or boxing).
I will consider this feature complete once we get the ability to name these opaque types, via a type alias impl trait.