Protocols
The following protocols are available globally.
-
The type where an instance can be represented by an array of bytes (
See moreUInt8
).Declaration
Swift
public protocol BytesRepresentable
-
A
Collection
type that contains keyed values.This protocol acts as an abstraction over
See moreDictionary
for theSerializer
type. It is mostly for testing purposes but you can also conform your own types if you want.Declaration
Swift
public protocol KeyedCollection: Collection where Self.Element == (key: Key, value: Value)