Skip to main content

emit

Function emit 

Source
pub fn emit(
    module: &PioModule<MulticonductorNetwork>,
    format: DistTargetFormat,
    destination: Destination,
) -> Result<EmitResult, Error>
Expand description

Emit a parsed module to format through a destination.

The JSON targets commit a single artifact — a path destination names the exact file, a memory destination names the artifact. The dss target is a directory inventory: the destination names the output root, the case text commits as case.dss, and every companion file the emitter produced (OpenDSS Buscoords CSV) commits beside it, so nothing the case text refers to is missing from the output.

§Errors

The destination’s own collision and staging failures.

§Panics

Never on external input: the fixed artifact names are valid by construction.