In @rustlang is there any way to constrain an associated type in a where clause? Are where clauses fully documented anywhere?
@carllerche I'm still getting my head around when associated types help vs. type params on the trait. Not quite the same as in Scala.
-
-
@avibryant … I think (i could also just be making stuff up).Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@avibryant Given trait Foo that composes of trait Bar, if every concrete impl of Foo uses the same concrete Bar, then use associated types.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@avibryant Yeah, it's different :)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.