Skip to main content

Module format_string

Module format_string 

Source
Expand description

Format string parsing and resolution.

Structs§

FormatString
FormatStringOptions
Builder-style options for FormatString::resolve_with and FormatString::resolve_string_with.
FormatStringValidationError
Structured error from FormatString::validate_expressions.

Constants§

MAX_FORMAT_STRING_LEN
Maximum permitted input length (in bytes) for FormatString::new.
MAX_FORMAT_STRING_SEGMENTS
Maximum number of {{...}} interpolation segments in a single format string.

Functions§

copy_symbol_value
Walk a dotted symbol name into source, find the deepest Value entry, and copy it into dest at the same path.
escape_format_string
Escape {{ and }} in a string so the format string parser treats them as literals.