Protocols

The following protocols are available globally.

  • The type where an instance can be represented by an array of bytes (UInt8).

    See more

    Declaration

    Swift

    public protocol BytesRepresentable
  • A Collection type that contains keyed values.

    This protocol acts as an abstraction over Dictionary for the Serializer type. It is mostly for testing purposes but you can also conform your own types if you want.

    See more

    Declaration

    Swift

    public protocol KeyedCollection: Collection where Self.Element == (key: Key, value: Value)