Skip to main content

format_string

Function format_string 

Source
pub fn format_string(fmt: &str, args: &[Value]) -> Result<String, RuntimeError>
Expand description

Processes a Rust-style format string with positional arguments.

Supported placeholders:

  • {} — display the next argument
  • {0}, {1} — indexed arguments
  • {:?} — debug format
  • {:.N} — float precision
  • {{ / }} — escaped braces