Packmatic.Field protocol (Packmatic v1.2.0) View Source

Represents data fields used internally by Packmatic.Encoder to represent information which make up the Zip format.

Link to this section Summary

Types

t()

All the types that implement this protocol.

Functions

Encodes the given structure into an IO List, or crashes if the structure is invalid.

Link to this section Types

Specs

t() :: term()

All the types that implement this protocol.

Link to this section Functions

Specs

encode(t()) :: iodata() | no_return()

Encodes the given structure into an IO List, or crashes if the structure is invalid.