Is there a way to formulate a trait for "HasIterator" ?
I.e.
T: HasIterator<V>
if and only if T.iter()
exists and has type Iterator<Item = V>
?
==================================
Context: I am trying to write generic code that says: you can pass any object here where we can call '.iter()" on.