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

Method class

crates/vm/src/object/core.rs:1434–1436  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1432
1433 #[inline(always)]
1434 pub fn class(&self) -> &Py<PyType> {
1435 self.0.typ.deref()
1436 }
1437
1438 pub fn set_class(&self, typ: PyTypeRef, vm: &VirtualMachine) {
1439 self.0.typ.swap_to_temporary_refs(typ, vm);

Callers 8

default_deallocFunction · 0.45
downcast_exactMethod · 0.45
downgrade_with_typMethod · 0.45
payload_if_exactMethod · 0.45
payload_if_subclassMethod · 0.45
downcast_ref_if_exactMethod · 0.45
drop_slow_innerMethod · 0.45
try_call_finalizerMethod · 0.45

Calls 1

derefMethod · 0.45

Tested by

no test coverage detected