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

Method __ixor__

crates/vm/src/builtins/set.rs:753–761  ·  view source on GitHub ↗
(zelf: PyRef<Self>, set: AnySet, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

751 }
752
753 fn __ixor__(zelf: PyRef<Self>, set: AnySet, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
754 if set.is(zelf.as_object()) {
755 zelf.inner.clear();
756 } else {
757 zelf.inner
758 .symmetric_difference_update(set.into_iterable_iter(vm)?, vm)?;
759 }
760 Ok(zelf)
761 }
762
763 #[pymethod]
764 fn __reduce__(

Callers

nothing calls this directly

Calls 5

isMethod · 0.80
into_iterable_iterMethod · 0.80
as_objectMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected