Function hcl::format::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.