pub fn write_as(
net: &BalancedNetwork,
format: TargetFormat,
) -> Result<Conversion, Error>Expand description
Convert a BalancedNetwork 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. A non-finite value is not an
error: readers can 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).