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

Method __contains__

crates/vm/src/builtins/mappingproxy.rs:132–134  ·  view source on GitHub ↗
(&self, key: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

130 }
131
132 pub fn __contains__(&self, key: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {
133 self._contains(&key, vm)
134 }
135
136 fn to_object(&self, vm: &VirtualMachine) -> PyResult {
137 Ok(match &self.mapping {

Callers

nothing calls this directly

Calls 1

_containsMethod · 0.45

Tested by

no test coverage detected