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

Method __contains__

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

Source from the content-addressed store, hash-verified

236 }
237
238 fn __contains__(
239 &self,
240 needle: Either<PyBytesInner, PyIntRef>,
241 vm: &VirtualMachine,
242 ) -> PyResult<bool> {
243 self.inner.contains(needle, vm)
244 }
245
246 #[pystaticmethod]
247 fn maketrans(from: PyBytesInner, to: PyBytesInner, vm: &VirtualMachine) -> PyResult<Vec<u8>> {

Callers

nothing calls this directly

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected