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

Method invoke_ref

crates/vm/src/vm/method.rs:136–142  ·  view source on GitHub ↗
(&self, args: impl IntoFuncArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

134
135 #[allow(dead_code)]
136 pub fn invoke_ref(&self, args: impl IntoFuncArgs, vm: &VirtualMachine) -> PyResult {
137 let (func, args) = match self {
138 Self::Function { target, func } => (func, args.into_method_args(target.clone(), vm)),
139 Self::Attribute(func) => (func, args.into_args(vm)),
140 };
141 func.call(args, vm)
142 }
143}

Callers

nothing calls this directly

Calls 4

into_method_argsMethod · 0.80
cloneMethod · 0.45
into_argsMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected