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

Method __and__

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

Source from the content-addressed store, hash-verified

1181 }
1182
1183 fn __and__(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine) -> PyResult<PySet> {
1184 let zelf = Self::to_set(zelf, vm)?;
1185 let inner = zelf.intersection(other, vm)?;
1186 Ok(PySet { inner })
1187 }
1188
1189 fn __or__(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine) -> PyResult<PySet> {
1190 let zelf = Self::to_set(zelf, vm)?;

Callers

nothing calls this directly

Implementers 1

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

Calls 1

intersectionMethod · 0.45

Tested by

no test coverage detected