try_evaluate_interpolated_string

Function try_evaluate_interpolated_string 

Source
pub fn try_evaluate_interpolated_string(
    input: &str,
    ctx: &mut EvalContext,
) -> Result<String>
Expand description

Evaluates all interpolated expressions in a string and returns the complete result

This is a convenience wrapper around process_interpolated_chars that collects all output into a single string.

§Arguments

  • input - The input string containing potential interpolated expressions
  • ctx - Evaluation context containing variables and state

§Returns

  • Result<String> - The fully processed string with all expressions evaluated

§Errors

Returns error if expression evaluation fails