Skip to main content

value_from_expr

Function value_from_expr 

Source
pub fn value_from_expr(cx: &mut Cx, expr: &Expr) -> Result<Value>
Expand description

Builds a runtime Value from an Expr using cx’s factory.

Reconstructs literals, symbols, lists, and symbol-keyed maps, falling back to the factory’s generic expr path for other shapes. Used to turn citizen constructor arguments back into values for read-construct.