pub trait Format: Sealed {
    fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>
    where
        W: Write
; }
Expand description

A trait to format data structures as HCL.

This trait is sealed to prevent implementation outside of this crate.

Required Methods

Formats a HCL structure using a formatter and writes the result to the provided writer.

Errors

Formatting the data structure or writing to the writer may fail with an Error.

Implementations on Foreign Types

Implementors