hcl::format

Function to_vec

Source
pub fn to_vec<T>(value: &T) -> Result<Vec<u8>>
where T: ?Sized + Format,
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.