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

Method invoke

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

Source from the content-addressed store, hash-verified

125 }
126
127 pub fn invoke(self, args: impl IntoFuncArgs, vm: &VirtualMachine) -> PyResult {
128 let (func, args) = match self {
129 Self::Function { target, func } => (func, args.into_method_args(target, vm)),
130 Self::Attribute(func) => (func, args.into_args(vm)),
131 };
132 func.call(args, vm)
133 }
134
135 #[allow(dead_code)]
136 pub fn invoke_ref(&self, args: impl IntoFuncArgs, vm: &VirtualMachine) -> PyResult {

Callers 11

trigger_signalsFunction · 0.45
spec_format_bytesFunction · 0.45
roundFunction · 0.45
nextMethod · 0.45
run_threadFunction · 0.45
start_joinable_threadFunction · 0.45
_absMethod · 0.45
_posMethod · 0.45
_negMethod · 0.45
_invertMethod · 0.45
formatMethod · 0.45

Calls 3

into_method_argsMethod · 0.80
into_argsMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected