Skip to main content

to_value

Function to_value 

Source
pub fn to_value<T: Serialize>(value: &T) -> Result<Value, Error>
Expand description

Serialise a Rust value into a snix_eval::Value.

This is the inverse of crate::from_value.