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

Method iter

enumset/src/impl_set.rs:601–603  ·  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

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
606impl<T: EnumSetType> Iterator for EnumSetIter<T> {

Callers 10

test_iter_mixedFunction · 0.45
test_sumFunction · 0.45
generate_codeFunction · 0.45
create_enum_conversionsFunction · 0.45
create_enum_const_opersFunction · 0.45
map_compactMethod · 0.45
formatMethod · 0.45
newMethod · 0.45
into_iterMethod · 0.45

Calls 1

newFunction · 0.85

Tested by 3

test_iter_mixedFunction · 0.36
test_sumFunction · 0.36