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

Method fold_op

crates/vm/src/builtins/set.rs:53–62  ·  view source on GitHub ↗
(
        &self,
        others: impl core::iter::Iterator<Item = ArgIterable>,
        op: fn(&PySetInner, ArgIterable, &VirtualMachine) -> PyResult<PySetInner>,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

51 }
52
53 fn fold_op(
54 &self,
55 others: impl core::iter::Iterator<Item = ArgIterable>,
56 op: fn(&PySetInner, ArgIterable, &VirtualMachine) -> PyResult<PySetInner>,
57 vm: &VirtualMachine,
58 ) -> PyResult<Self> {
59 Ok(Self {
60 inner: self.inner.fold_op(others, op, vm)?,
61 })
62 }
63
64 fn op(
65 &self,

Callers 6

opMethod · 0.80
intersection_updateMethod · 0.80
unionMethod · 0.80
intersectionMethod · 0.80
differenceMethod · 0.80
symmetric_differenceMethod · 0.80

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected