Skip to main content

to_string

Function to_string 

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

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.