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

Method __rsub__

crates/vm/src/builtins/dict.rs:1201–1206  ·  view source on GitHub ↗
(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1199 }
1200
1201 fn __rsub__(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine) -> PyResult<PySet> {
1202 let left = PySetInner::from_iter(other.iter(vm)?, vm)?;
1203 let right = ArgIterable::try_from_object(vm, Self::iter(zelf, vm)?)?;
1204 let inner = left.difference(right, vm)?;
1205 Ok(PySet { inner })
1206 }
1207
1208 fn cmp(
1209 zelf: &Py<Self>,

Callers

nothing calls this directly

Implementers 1

dict.rscrates/vm/src/builtins/dict.rs

Calls 3

iterFunction · 0.85
iterMethod · 0.45
differenceMethod · 0.45

Tested by

no test coverage detected