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

Method method

crates/vm/src/function/method.rs:295–297  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

293
294impl Py<HeapMethodDef> {
295 pub(crate) unsafe fn method(&self) -> &'static PyMethodDef {
296 unsafe { &*(&self.method as *const _) }
297 }
298
299 pub fn build_function(&self, vm: &VirtualMachine) -> PyRef<PyNativeFunction> {
300 let mut function = unsafe { self.method() }.to_function();

Callers 3

cert_to_dictFunction · 0.45
build_functionMethod · 0.45
build_methodMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected