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

Method issuperset

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

Source from the content-addressed store, hash-verified

289 }
290
291 fn issuperset(&self, other: ArgIterable, vm: &VirtualMachine) -> PyResult<bool> {
292 for item in other.iter(vm)? {
293 if !self.contains(&*item?, vm)? {
294 return Ok(false);
295 }
296 }
297 Ok(true)
298 }
299
300 fn issubset(&self, other: ArgIterable, vm: &VirtualMachine) -> PyResult<bool> {
301 let other_set = Self::from_iter(other.iter(vm)?, vm)?;

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected