Function sk_cbor::writer::write[][src]

pub fn write(
    value: Value,
    encoded_cbor: &mut Vec<u8>
) -> Result<(), EncoderError>
Expand description

Convert a Value to serialized CBOR data, consuming it along the way and appending to the provided vector. Supports arbitrarily nested CBOR (so the EncoderError::TooMuchNesting error is never emitted).