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

Method irepeat

crates/vm/src/builtins/list.rs:152–155  ·  view source on GitHub ↗
(zelf: PyRef<Self>, n: isize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

150 }
151
152 fn irepeat(zelf: PyRef<Self>, n: isize, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
153 zelf.borrow_vec_mut().imul(vm, n)?;
154 Ok(zelf)
155 }
156}
157
158#[derive(FromArgs, Default, Traverse)]

Callers

nothing calls this directly

Calls 2

borrow_vec_mutMethod · 0.80
imulMethod · 0.45

Tested by

no test coverage detected