Skip to main content

store_computed_layout

Function store_computed_layout 

Source
pub fn store_computed_layout<ElementsOutput: Clone + Serialize>(
    res: &Vec<ElementsOutput>,
    file: &Path,
) -> Result<(), Box<dyn Error>>
Expand description

Writes a vector of layout outputs to a JSON file.

Typically used after a record pass to persist LayoutModuleCapture::output.

ยงErrors

Returns an error if JSON serialization or file writing fails.