Skip to main content

evaluate_result_vec_to_array_expr

Function evaluate_result_vec_to_array_expr 

Source
fn evaluate_result_vec_to_array_expr(
    items: &[Option<EvaluateResultValue>],
) -> Expr
Expand description

Converts EvaluateResultValue::Vec items into an Expr::Array.

Each item may itself be a nested Vec (converted to a sub-array) or a plain Expr. Only Array, Object, Lit, and Ident expressions are allowed as element values; any other variant panics with ILLEGAL_PROP_ARRAY_VALUE.