Skip to main content

export_from_host

Function export_from_host 

Source
pub fn export_from_host(
    host: &mut AnalysisHost,
    format: &str,
    verbose: bool,
    self_contained: bool,
) -> Result<Vec<u8>, String>
Expand description

Export model from an existing AnalysisHost to an interchange format.

This allows exporting from a pre-populated host (e.g., after import_model_into_host). Element IDs are preserved from the symbol database.

Set self_contained to true to include all symbols (including stdlib), or false to only include user model symbols.