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

Method issubset

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

Source from the content-addressed store, hash-verified

298 }
299
300 fn issubset(&self, other: ArgIterable, vm: &VirtualMachine) -> PyResult<bool> {
301 let other_set = Self::from_iter(other.iter(vm)?, vm)?;
302 self.compare(&other_set, PyComparisonOp::Le, vm)
303 }
304
305 pub(super) fn isdisjoint(&self, other: ArgIterable, vm: &VirtualMachine) -> PyResult<bool> {
306 for item in other.iter(vm)? {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected