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

Method prepend_arg

crates/vm/src/function/argument.rs:205–208  ·  view source on GitHub ↗
(&mut self, item: PyObjectRef)

Source from the content-addressed store, hash-verified

203 }
204
205 pub fn prepend_arg(&mut self, item: PyObjectRef) {
206 self.args.reserve_exact(1);
207 self.args.insert(0, item)
208 }
209
210 pub fn shift(&mut self) -> PyObjectRef {
211 self.args.remove(0)

Callers 6

execute_callMethod · 0.80
new_wrapperFunction · 0.80
into_method_argsMethod · 0.80
callMethod · 0.80
callMethod · 0.80

Calls 2

reserve_exactMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected