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

Method init_manually

crates/vm/src/class.rs:87–92  ·  view source on GitHub ↗
(typ: PyTypeRef)

Source from the content-addressed store, hash-verified

85 Self::static_cell().get().unwrap_or_else(|| fail())
86 }
87 fn init_manually(typ: PyTypeRef) -> &'static Py<PyType> {
88 let cell = Self::static_cell();
89 cell.set(typ)
90 .unwrap_or_else(|_| panic!("double initialization from init_manually"));
91 cell.get().unwrap()
92 }
93 fn init_builtin_type() -> &'static Py<PyType>
94 where
95 Self: PyClassImpl,

Callers

nothing calls this directly

Calls 3

setMethod · 0.45
unwrapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected