(self, args: impl IntoFuncArgs, vm: &VirtualMachine)
| 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 { |
no test coverage detected