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

Method __mul__

crates/vm/src/builtins/bytes.rs:519–521  ·  view source on GitHub ↗
(zelf: PyRef<Self>, value: ArgIndex, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

517 }
518
519 fn __mul__(zelf: PyRef<Self>, value: ArgIndex, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
520 zelf.repeat(value.into_int_ref().try_to_primitive(vm)?, vm)
521 }
522
523 fn __mod__(&self, values: PyObjectRef, vm: &VirtualMachine) -> PyResult<Self> {
524 let formatted = self.inner.cformat(values, vm)?;

Callers

nothing calls this directly

Calls 3

try_to_primitiveMethod · 0.80
into_int_refMethod · 0.80
repeatMethod · 0.45

Tested by

no test coverage detected