pub fn to_string<T: Serialize>(value: &T) -> Result<String, Error>
Serialise a Rust value into a Nix code string.
This is a convenience wrapper around to_value which converts the resulting snix_eval::Value into a string.
to_value
snix_eval::Value