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

Method repeat

crates/vm/src/builtins/bytearray.rs:96–98  ·  view source on GitHub ↗
(&self, value: isize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

94 }
95
96 fn repeat(&self, value: isize, vm: &VirtualMachine) -> PyResult<Self> {
97 self.inner().mul(value, vm).map(|x| x.into())
98 }
99
100 fn _setitem_by_index(&self, i: isize, value: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
101 let value = value_from_object(vm, &value)?;

Callers 1

__mul__Method · 0.45

Calls 3

mapMethod · 0.45
mulMethod · 0.45
innerMethod · 0.45

Tested by

no test coverage detected