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

Method __contains__

crates/vm/src/builtins/tuple.rs:458–460  ·  view source on GitHub ↗
(&self, needle: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

456 }
457
458 fn __contains__(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {
459 self._contains(&needle, vm)
460 }
461
462 #[pymethod]
463 fn __getnewargs__(zelf: PyRef<Self>, vm: &VirtualMachine) -> (PyTupleRef,) {

Callers

nothing calls this directly

Calls 1

_containsMethod · 0.45

Tested by

no test coverage detected