trait FooExt {fn bar(&self) -> Vec<u32>} => trait FooExt { type Bar<'a>: Iterator<Item=u32> where Self: 'a; fn bar(&self) -> Self::Bar<'_>; } impl FooExt for Foo { type Bar<'a> where Self: 'a = impl Iterator<Item=u32>; fn bar(&self) -> Self::Bar<'_> { ... } }
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
RFC for that is already accepted and I'm working on implementing the thing :). Doing a refactor on RPIT first.
-
Whooo exciting! Thanks for the hard work :-)
End of conversation
New conversation -
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