Module minicbor::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§

Modules§

  • The Write trait definition and implementations.

Structs§

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

Traits§

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