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

Method op

crates/vm/src/builtins/set.rs:64–75  ·  view source on GitHub ↗
(
        &self,
        other: AnySet,
        op: fn(&PySetInner, ArgIterable, &VirtualMachine) -> PyResult<PySetInner>,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

62 }
63
64 fn op(
65 &self,
66 other: AnySet,
67 op: fn(&PySetInner, ArgIterable, &VirtualMachine) -> PyResult<PySetInner>,
68 vm: &VirtualMachine,
69 ) -> PyResult<Self> {
70 Ok(Self {
71 inner: self
72 .inner
73 .fold_op(core::iter::once(other.into_iterable(vm)?), op, vm)?,
74 })
75 }
76}
77
78#[pyclass(module = false, name = "frozenset", unhashable = true)]

Callers 4

__or__Method · 0.80
__and__Method · 0.80
__sub__Method · 0.80
__xor__Method · 0.80

Calls 3

onceFunction · 0.85
fold_opMethod · 0.80
into_iterableMethod · 0.80

Tested by

no test coverage detected