iterator!() { /* proc-macro */ }
Expand description

This macro is used to generate the implementation of the Iterator, reference IntoIterator, and ExactSizeIterator traits for a Collection. This macro can be used to avoid the boilerplate code that is required to implement these traits. This macro can generate the implementation for both mutable and immutable references.