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

Method format_utf8

crates/vm/src/vm/vm_ops.rs:577–579  ·  view source on GitHub ↗
(&self, obj: &PyObject, format_spec: PyStrRef)

Source from the content-addressed store, hash-verified

575 })
576 }
577 pub fn format_utf8(&self, obj: &PyObject, format_spec: PyStrRef) -> PyResult<PyRef<PyUtf8Str>> {
578 self.format(obj, format_spec)?.try_into_utf8(self)
579 }
580
581 pub fn _contains(&self, haystack: &PyObject, needle: &PyObject) -> PyResult<bool> {
582 let seq = haystack.sequence_unchecked();

Callers

nothing calls this directly

Calls 2

try_into_utf8Method · 0.80
formatMethod · 0.45

Tested by

no test coverage detected