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

Method fast_isinstance

crates/vm/src/object/ext.rs:581–583  ·  view source on GitHub ↗
(&self, cls: &Py<PyType>)

Source from the content-addressed store, hash-verified

579 /// use this if `cls` is known to have not overridden the base __instancecheck__ magic method.
580 #[inline]
581 fn fast_isinstance(&self, cls: &Py<PyType>) -> bool {
582 self.class().fast_issubclass(cls)
583 }
584}
585
586impl<T> AsObject for T where T: Borrow<PyObject> {}

Callers 15

run_shellFunction · 0.80
get_importerFunction · 0.80
py_err_to_js_errFunction · 0.80
py_to_jsFunction · 0.80
get_raw_sockFunction · 0.80
set_exceptionMethod · 0.80
throwMethod · 0.80
py_initMethod · 0.80
set_nameMethod · 0.80
task_step_handle_resultFunction · 0.80
all_tasksFunction · 0.80

Implementers 1

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

Calls 2

fast_issubclassMethod · 0.80
classMethod · 0.45

Tested by 1

test_mode_via_statMethod · 0.64