Function hcl::to_vec

source · []
pub fn to_vec<T>(value: &T) -> Result<Vec<u8>> where
    T: ?Sized + Serialize
Expand description

Serialize the given value as an HCL byte vector.

Errors

Serialization fails if the type cannot be represented as HCL.