Skip to main content

encode_value_expr

Function encode_value_expr 

Source
pub fn encode_value_expr(cx: &mut WriteCx<'_>, value: &Value) -> Result<Expr>
Expand description

Walk a runtime Value into a kernel Expr ready for encoding.

Lists and tables are forced and recursed into; every other value is lowered through its own as_expr. This is the value-side entry point that encode_value_with_codec runs before handing the Expr to a codec.