pub fn to_string<T>(value: &T) -> Result<String>where
T: ?Sized + Format,
Expand description
Format the given value as an HCL string.
If you need to serialize custom data structures implementing serde::Serialize
use
hcl::to_string
instead.
Errors
Formatting a value as string cannot fail.