Skip to main content

encode

Function encode 

Source
pub fn encode(value: &Value) -> Result<Vec<u8>, EncodeError>
Expand description

Encode value as deterministic CBOR. See the module doc for the exact rules; every one of them is verified against the real reference in this module’s tests. A value macula 12’s decoding rule refuses is refused here too, with the reason, so what this writes decode reads back.