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

Method into_ref

crates/vm/src/builtins/builtin_func.rs:48–54  ·  view source on GitHub ↗
(self, ctx: &Context)

Source from the content-addressed store, hash-verified

46 }
47
48 pub fn into_ref(self, ctx: &Context) -> PyRef<Self> {
49 PyRef::new_ref(
50 self,
51 ctx.types.builtin_function_or_method_type.to_owned(),
52 None,
53 )
54 }
55
56 // PyCFunction_GET_SELF
57 pub fn get_self(&self) -> Option<&PyObject> {

Callers 15

newMethod · 0.45
js_to_pyFunction · 0.45
enum_certificatesFunction · 0.45
get_argvFunction · 0.45
emptyMethod · 0.45
currentMethod · 0.45
copyMethod · 0.45
setMethod · 0.45
module_execFunction · 0.45
_asyncio_awaited_byMethod · 0.45
awaited_by_addMethod · 0.45
delMethod · 0.45

Calls 1

to_ownedMethod · 0.45

Tested by

no test coverage detected