Would it make sense for never to implement Iterator?
Rust Internals
Would it make sense for never to implement Iterator?
After reading nightly documentation for the never type I started wondering why ! does not implement the Iterator trait. The documentation states: In general, if a trait only has methods taking a self parameter (or &self, or an argument of type Self, etc.), consider implementing it for ! Iterator trait meets this criterion. There is also an associated type, but the Not trait has an associated type as well and ! implements Not. In both cases ! seems like the most obvious choice for the item t...
0 comments
No comments yet.