News for hackers. Stuff that matters.
Re:Fear Not the Association of Types by AlotOfReading on Sunday August 18, 2024 @04:28PM (#41285223)
You'd write it as a type parameter with a type bound. There's a couple of different ways to write it, but one example:

fn foo<I>(it: I) where I : Iterator<Item = i32> {}

There are no comments on this comment yet.