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

Method repr_str

crates/vm/src/builtins/float.rs:503–505  ·  view source on GitHub ↗
(zelf: &Py<Self>, _vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

501impl Representable for PyFloat {
502 #[inline]
503 fn repr_str(zelf: &Py<Self>, _vm: &VirtualMachine) -> PyResult<String> {
504 Ok(crate::literal::float::to_string(zelf.value))
505 }
506}
507
508impl PyFloat {

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected