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

Method __iand__

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

Source from the content-addressed store, hash-verified

718 }
719
720 fn __iand__(zelf: PyRef<Self>, set: AnySet, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
721 if !set.is(zelf.as_object()) {
722 zelf.inner
723 .intersection_update(core::iter::once(set.into_iterable(vm)?), vm)?;
724 }
725 Ok(zelf)
726 }
727
728 #[pymethod]
729 fn difference_update(&self, others: PosArgs<ArgIterable>, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 5

onceFunction · 0.85
isMethod · 0.80
into_iterableMethod · 0.80
as_objectMethod · 0.45
intersection_updateMethod · 0.45

Tested by

no test coverage detected