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

Method _in

crates/vm/src/frame.rs:7247–7250  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine, needle: &PyObject, haystack: &PyObject)

Source from the content-addressed store, hash-verified

7245 }
7246
7247 fn _in(&self, vm: &VirtualMachine, needle: &PyObject, haystack: &PyObject) -> PyResult<bool> {
7248 let found = vm._contains(haystack, needle)?;
7249 Ok(found)
7250 }
7251
7252 #[inline(always)]
7253 fn _not_in(

Callers 3

execute_instructionMethod · 0.80
setup_annotationsMethod · 0.80
_not_inMethod · 0.80

Calls 1

_containsMethod · 0.45

Tested by

no test coverage detected