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

Method repr_wtf8

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

Source from the content-addressed store, hash-verified

251impl Representable for PyTemplate {
252 #[inline]
253 fn repr_wtf8(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<Wtf8Buf> {
254 let strings_repr = zelf.strings.as_object().repr(vm)?;
255 let interp_repr = zelf.interpolations.as_object().repr(vm)?;
256 Ok(wtf8_concat!(
257 "Template(strings=",
258 strings_repr.as_wtf8(),
259 ", interpolations=",
260 interp_repr.as_wtf8(),
261 ')',
262 ))
263 }
264}
265
266/// Iterator for Template objects

Callers

nothing calls this directly

Calls 2

reprMethod · 0.45
as_objectMethod · 0.45

Tested by

no test coverage detected