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

Method repr_str

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

Source from the content-addressed store, hash-verified

137impl Representable for PyGenerator {
138 #[inline]
139 fn repr_str(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<String> {
140 Ok(zelf.inner.repr(zelf.as_object(), zelf.get_id(), vm))
141 }
142}
143
144impl SelfIter for PyGenerator {}

Callers

nothing calls this directly

Calls 3

reprMethod · 0.45
as_objectMethod · 0.45
get_idMethod · 0.45

Tested by

no test coverage detected