Skip to main content

encode_value

Function encode_value 

Source
pub fn encode_value(w: &mut Vec<u8>, val: &Value) -> Result<(), EncodeError>
Expand description

Encode a dynamic Value to CBOR bytes.

Writes are infallible since the target is a Vec<u8>. Returns Err only for values outside the CBOR representable range.