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

Method build_classmethod

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

Source from the content-addressed store, hash-verified

197 }
198
199 pub fn build_classmethod(
200 &'static self,
201 ctx: &Context,
202 class: &'static Py<PyType>,
203 ) -> PyRef<PyMethodDescriptor> {
204 PyRef::new_ref(
205 self.to_method(class, ctx),
206 ctx.types.method_descriptor_type.to_owned(),
207 None,
208 )
209 }
210
211 pub fn build_staticmethod(
212 &'static self,

Callers 1

to_proper_methodMethod · 0.80

Calls 2

to_methodMethod · 0.80
to_ownedMethod · 0.45

Tested by

no test coverage detected