MCPcopy Index your code
hub / github.com/RustPython/RustPython / merge_set

Method merge_set

crates/vm/src/builtins/set.rs:384–389  ·  view source on GitHub ↗
(&self, any_set: AnySet, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

382 }
383
384 fn merge_set(&self, any_set: AnySet, vm: &VirtualMachine) -> PyResult<()> {
385 for item in any_set.as_inner().elements() {
386 self.add(item, vm)?;
387 }
388 Ok(())
389 }
390
391 fn merge_dict(&self, dict: PyDictRef, vm: &VirtualMachine) -> PyResult<()> {
392 for (key, _value) in dict {

Callers 1

update_internalMethod · 0.80

Calls 3

as_innerMethod · 0.80
elementsMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected