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

Method to_method

crates/vm/src/function/method.rs:130–136  ·  view source on GitHub ↗
(
        &'static self,
        class: &'static Py<PyType>,
        ctx: &Context,
    )

Source from the content-addressed store, hash-verified

128 }
129
130 pub fn to_method(
131 &'static self,
132 class: &'static Py<PyType>,
133 ctx: &Context,
134 ) -> PyMethodDescriptor {
135 PyMethodDescriptor::new(self, class, ctx)
136 }
137
138 pub const fn to_bound_method(
139 &'static self,

Callers 2

build_methodMethod · 0.80
build_classmethodMethod · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected