Module encode

Source
Expand description

Traits and types for encoding CBOR.

This module defines the trait Encode and the actual Encoder. It also defines a Write trait to store the encoded bytes.

Re-exports§

pub use write::Write;

Modules§

write
The Write trait definition and implementations.

Structs§

ArrayIter
An encodable iterator writing its items as a CBOR array.
Encoder
A non-allocating CBOR encoder writing encoded bytes to the given Write sink.
Error
Encoding error.
MapIter
An encodable iterator writing its items as a CBOR map.

Traits§

CborLen
A type that can calculate its own CBOR encoding length.
Encode
A type that can be encoded to CBOR.