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

Method __or__

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

Source from the content-addressed store, hash-verified

1187 }
1188
1189 fn __or__(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine) -> PyResult<PySet> {
1190 let zelf = Self::to_set(zelf, vm)?;
1191 let inner = zelf.union(other, vm)?;
1192 Ok(PySet { inner })
1193 }
1194
1195 fn __sub__(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine) -> PyResult<PySet> {
1196 let zelf = Self::to_set(zelf, vm)?;

Callers

nothing calls this directly

Implementers 1

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

Calls 1

unionMethod · 0.45

Tested by

no test coverage detected