Expand description
CBOR encoding into caller-provided buffers.
Encoder advances through a fixed &mut [u8] output and exposes one
method per CBOR type. Methods return Result<&mut Self, _> so calls
chain naturally; nothing allocates and nothing panics at runtime.
The submodule consts mirrors the encoder with const fns that
report insufficient space by panic, making whole encodings evaluable at
compile time.
Modules§
- consts
- Compile-time serialization helpers (
const fn, panic on overflow).
Structs§
- Encoder
- Serializes CBOR items into a fixed buffer.