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

Method _contains

crates/vm/src/vm/vm_ops.rs:581–584  ·  view source on GitHub ↗
(&self, haystack: &PyObject, needle: &PyObject)

Source from the content-addressed store, hash-verified

579 }
580
581 pub fn _contains(&self, haystack: &PyObject, needle: &PyObject) -> PyResult<bool> {
582 let seq = haystack.sequence_unchecked();
583 seq.contains(needle, self)
584 }
585}

Callers 2

execute_instructionMethod · 0.45
_inMethod · 0.45

Calls 2

sequence_uncheckedMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected