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

Method repr_str

crates/vm/src/builtins/bytearray.rs:850–854  ·  view source on GitHub ↗
(zelf: &Py<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

848impl Representable for PyByteArray {
849 #[inline]
850 fn repr_str(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<String> {
851 let class = zelf.class();
852 let class_name = class.name();
853 zelf.inner().repr_with_name(&class_name, vm)
854 }
855}
856
857#[pyclass(module = false, name = "bytearray_iterator")]

Callers

nothing calls this directly

Calls 4

repr_with_nameMethod · 0.80
classMethod · 0.45
nameMethod · 0.45
innerMethod · 0.45

Tested by

no test coverage detected