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

Method extend

enumset/src/impl_set_mixed.rs:355–359  ·  view source on GitHub ↗
(&mut self, iter: I)

Source from the content-addressed store, hash-verified

353
354impl<T: EnumSetTypeWithRepr> Extend<EnumSet<T>> for MixedEnumSet<T> {
355 fn extend<I: IntoIterator<Item = EnumSet<T>>>(&mut self, iter: I) {
356 iter.into_iter().for_each(|v| {
357 self.insert_all(v);
358 });
359 }
360}
361
362impl<'a, T: EnumSetTypeWithRepr> Extend<&'a EnumSet<T>> for MixedEnumSet<T> {

Callers 3

test_extendFunction · 0.80
generate_codeFunction · 0.80
from_iterMethod · 0.80

Calls 2

into_iterMethod · 0.45
insert_allMethod · 0.45

Tested by 1

test_extendFunction · 0.64