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

Method isdisjoint

crates/vm/src/builtins/set.rs:305–312  ·  view source on GitHub ↗
(&self, other: ArgIterable, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

303 }
304
305 pub(super) fn isdisjoint(&self, other: ArgIterable, vm: &VirtualMachine) -> PyResult<bool> {
306 for item in other.iter(vm)? {
307 if self.contains(&*item?, vm)? {
308 return Ok(false);
309 }
310 }
311 Ok(true)
312 }
313
314 fn iter(&self) -> PySetIterator {
315 PySetIterator {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected