CBOR.Encoder protocol
(cbor v2.0.0-rc1)
View Source
Protocol for serializing Elixir terms into CBOR.
Implementations for built-in types (atoms, integers, floats, binaries,
lists, maps, Date, Time, DateTime, MapSet, URI, CBOR.Tag,
...) ship with this library. Define your own defimpl CBOR.Encoder, for: MyStruct
to teach CBOR.encode/1 how to serialize custom types.
Summary
Functions
Append the CBOR encoding of element to acc and return the resulting
binary.
Types
@type t() :: term()
All the types that implement this protocol.