MCPcopy Create free account
hub / github.com/Lymia/enumset / iter

Method iter

enumset/src/impl_set_mixed.rs:321–323  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
326impl<T: EnumSetTypeWithRepr> Iterator for MixedEnumSetIter<T> {

Callers 3

formatMethod · 0.45
newMethod · 0.45
into_iterMethod · 0.45

Calls 1

newFunction · 0.85

Tested by

no test coverage detected