pub fn parse(source: Source) -> Result<PioModule<MulticonductorNetwork>, Error>Expand description
Parse one source into a compiled distribution module. The typed
MulticonductorNetwork is the module’s value; the reader’s findings are
the module’s diagnostics; the source itself is retained on the module, so
a same format emission echoes the input bytes exactly.
The format comes from the source’s declared format when one was selected,
the .dss extension otherwise, and for .json from
classify_distribution_json.
§Errors
The operation failure carries the reader’s findings up to the failure and retains the source for span interpretation.