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

Method class

crates/vm/src/object/ext.rs:570–572  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

568
569 #[inline(always)]
570 fn class(&self) -> &Py<PyType> {
571 self.as_object().class()
572 }
573
574 fn get_class_attr(&self, attr_name: &'static PyStrInterned) -> Option<PyObjectRef> {
575 self.class().get_attr(attr_name)

Callers 4

into_exact_orMethod · 0.45
try_from_objectMethod · 0.45
get_class_attrMethod · 0.45
fast_isinstanceMethod · 0.45

Implementers 1

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

Calls 1

as_objectMethod · 0.45

Tested by

no test coverage detected