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

Method into_method_args

crates/vm/src/function/argument.rs:13–17  ·  view source on GitHub ↗
(self, obj: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

11pub trait IntoFuncArgs: Sized {
12 fn into_args(self, vm: &VirtualMachine) -> FuncArgs;
13 fn into_method_args(self, obj: PyObjectRef, vm: &VirtualMachine) -> FuncArgs {
14 let mut args = self.into_args(vm);
15 args.prepend_arg(obj);
16 args
17 }
18}
19
20impl<T> IntoFuncArgs for T

Callers 2

invokeMethod · 0.80
invoke_refMethod · 0.80

Implementers 1

argument.rscrates/vm/src/function/argument.rs

Calls 2

prepend_argMethod · 0.80
into_argsMethod · 0.45

Tested by

no test coverage detected