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

Method __contains__

crates/vm/src/builtins/list.rs:333–335  ·  view source on GitHub ↗
(&self, needle: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

331 }
332
333 pub(crate) fn __contains__(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {
334 self.mut_contains(vm, &needle)
335 }
336
337 #[pymethod]
338 fn index(

Callers 1

__dir__Method · 0.45

Calls 1

mut_containsMethod · 0.80

Tested by

no test coverage detected