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

Method contains

crates/vm/src/builtins/set.rs:221–223  ·  view source on GitHub ↗
(&self, needle: &PyObject, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

219 }
220
221 fn contains(&self, needle: &PyObject, vm: &VirtualMachine) -> PyResult<bool> {
222 self.retry_op_with_frozenset(needle, vm, |needle, vm| self.content.contains(vm, needle))
223 }
224
225 fn compare(&self, other: &Self, op: PyComparisonOp, vm: &VirtualMachine) -> PyResult<bool> {
226 if op == PyComparisonOp::Ne {

Callers 15

stripMethod · 0.45
contains_keyMethod · 0.45
__contains__Method · 0.45
slot_newMethod · 0.45
__contains__Method · 0.45
__contains__Method · 0.45
_containsMethod · 0.45
get_selfMethod · 0.45
callMethod · 0.45
newMethod · 0.45
fill_locals_from_argsMethod · 0.45

Calls 1

Tested by

no test coverage detected