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

Method mut_contains

crates/vm/src/sequence.rs:39–41  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine, needle: &PyObject)

Source from the content-addressed store, hash-verified

37 }
38
39 fn mut_contains(&self, vm: &VirtualMachine, needle: &PyObject) -> PyResult<bool> {
40 self.mut_index(vm, needle).map(|x| x.is_some())
41 }
42
43 fn _mut_iter_equal_skeleton<F, const SHORT: bool>(
44 &self,

Callers 2

_containsMethod · 0.80
__contains__Method · 0.80

Implementers 2

_collections.rscrates/vm/src/stdlib/_collections.rs
list.rscrates/vm/src/builtins/list.rs

Calls 2

mut_indexMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected