pub fn to_vec<T>(value: &T) -> Result<Vec<u8>>
Expand description
Format the given value as an HCL byte vector.
If you need to serialize custom data structures implementing serde::Serialize
use
hcl::to_vec
instead.
ยงErrors
Formatting a value as byte vector cannot fail.