Module oasis_cbor::writer [−][src]
Expand description
Functionality for serializing CBOR values into bytes.
Enums
Possible errors from a serialization operation.
Functions
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).
Convert a Value
to serialized CBOR data, consuming it along the way and appending to the provided vector. If
max_nest
is Some(max)
, then nested structures are only supported up to the given limit (returning
[DecoderError::TooMuchNesting
] if the limit is hit).