Skip to main content

encode_kvn

Function encode_kvn 

Source
pub fn encode_kvn(cdm: &CdmKvn) -> Result<String, CdmError>
Expand description

Encode a CdmKvn back to KVN text.

The date/time fields are taken as already-formatted strings (the host owns the instant-to-string conversion). Numeric values are written with their shortest round-tripping decimal form, so a re-parse recovers the exact same bits; the output is therefore round-trip faithful rather than byte-identical to any one producer.