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

Method __contains__

crates/vm/src/builtins/bytearray.rs:231–237  ·  view source on GitHub ↗
(
        &self,
        needle: Either<PyBytesInner, PyIntRef>,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

229 }
230
231 fn __contains__(
232 &self,
233 needle: Either<PyBytesInner, PyIntRef>,
234 vm: &VirtualMachine,
235 ) -> PyResult<bool> {
236 self.inner().contains(needle, vm)
237 }
238
239 fn __iadd__(
240 zelf: PyRef<Self>,

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45
innerMethod · 0.45

Tested by

no test coverage detected