pub fn write_as(net: &Network, format: TargetFormat) -> Result<Conversion>Expand description
Convert a Network to format. Writing back to the source format returns
the retained source text; otherwise the network is serialized into the target.
ยงErrors
Only a PowerioJson serialization failure (none arise from this model
today). A non-finite value is not an error: readers legitimately produce
Inf limits and the bindings materialize every network through the
snapshot, so it is written as null with a fidelity warning naming the
field: that output serves the one-way transports but does not read back
(the validating reader rejects the null).