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

Method is

crates/vm/src/object/ext.rs:562–567  ·  view source on GitHub ↗
(&self, other: &T)

Source from the content-addressed store, hash-verified

560
561 #[inline(always)]
562 fn is<T>(&self, other: &T) -> bool
563 where
564 T: AsObject,
565 {
566 self.get_id() == other.get_id()
567 }
568
569 #[inline(always)]
570 fn class(&self) -> &Py<PyType> {

Callers 15

do_handshakeMethod · 0.80
resetMethod · 0.80
awaited_by_discardMethod · 0.80
task_step_handle_resultFunction · 0.80
current_taskFunction · 0.80
all_tasksFunction · 0.80
_leave_taskFunction · 0.80
is_coroutineFunction · 0.80
py_newMethod · 0.80
extendMethod · 0.80
setitem_innerMethod · 0.80
__iadd__Method · 0.80

Implementers 1

ext.rscrates/vm/src/object/ext.rs

Calls 1

get_idMethod · 0.45

Tested by

no test coverage detected