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)
| 319 | /// Note that iterator invalidation is impossible as the iterator contains a copy of this type, |
| 320 | /// rather than holding a reference to it. |
| 321 | pub fn iter(&self) -> MixedEnumSetIter<T> { |
| 322 | MixedEnumSetIter::new(*self) |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | impl<T: EnumSetTypeWithRepr> Iterator for MixedEnumSetIter<T> { |