Function oasis_cbor::write

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

Convert a Value to serialized CBOR data, consuming it along the way and appending to the provided vector. Maximum level of nesting supported is 127; more deeply nested structures will fail with EncoderError::TooMuchNesting.