Iterates the contents of the set in order from the least significant bit to the most significant bit. Note that iterator invalidation is impossible as the iterator contains a copy of this type, rather than holding a reference to it.
(&self)
| 599 | /// Note that iterator invalidation is impossible as the iterator contains a copy of this type, |
| 600 | /// rather than holding a reference to it. |
| 601 | pub fn iter(&self) -> EnumSetIter<T> { |
| 602 | EnumSetIter::new(*self) |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | impl<T: EnumSetType> Iterator for EnumSetIter<T> { |