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

Method format_map

crates/vm/src/builtins/str.rs:984–988  ·  view source on GitHub ↗
(&self, mapping: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

982
983 #[pymethod]
984 fn format_map(&self, mapping: PyObjectRef, vm: &VirtualMachine) -> PyResult<Wtf8Buf> {
985 let format_string =
986 FormatString::from_str(self.as_wtf8()).map_err(|err| err.to_pyexception(vm))?;
987 format_map(&format_string, &mapping, vm)
988 }
989
990 #[pymethod]
991 fn __format__(

Callers

nothing calls this directly

Calls 3

format_mapFunction · 0.85
as_wtf8Method · 0.45
to_pyexceptionMethod · 0.45

Tested by

no test coverage detected