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

Method cformat

crates/vm/src/bytes_inner.rs:947–949  ·  view source on GitHub ↗
(&self, values: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

945 }
946
947 pub fn cformat(&self, values: PyObjectRef, vm: &VirtualMachine) -> PyResult<Vec<u8>> {
948 cformat_bytes(vm, self.elements.as_slice(), values)
949 }
950
951 pub fn mul(&self, n: isize, vm: &VirtualMachine) -> PyResult<Vec<u8>> {
952 self.elements.mul(vm, n)

Callers 2

__mod__Method · 0.80
__mod__Method · 0.80

Calls 2

cformat_bytesFunction · 0.85
as_sliceMethod · 0.45

Tested by

no test coverage detected