Skip to main content

try_expr_to_value

Function try_expr_to_value 

Source
pub fn try_expr_to_value(expr: Expr) -> Result<Value, EnvelopeError>
Expand description

Fallible variant of expr_to_value: surfaces depth overflow as an EnvelopeError instead of silently substituting Value::Nil. Callers re-parsing untrusted printed lists (e.g. cli-core::render::reparse_list) use this so over-nested data is reported, not masked as an empty result.