Hacker News new | ask | show | jobs
by Manishearth 3468 days ago
Right, but in most cases returning a named type is fine. Usually with futures/iterators I've seen that you end up returning a new custom type that implements the trait, and often it's okay to just name it.
1 comments

I think that's only the case when you are specifically trying to avoid boxing.