The lack of `impl Trait` in Rust trait definitions is a frustrating limitation. Eg I want my trait method to return an iterator instead of a vector, but don't want to specify the iterator type. You can overcome it, but it's gross and requires two nightly features:
-
Show this thread
-
Replying to @wcrichton
RFC for that is already accepted and I'm working on implementing the thing :). Doing a refactor on RPIT first.
1 reply 0 retweets 5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD