Contents

encode(to:)

Serializes a captured structure to the specified encoder.

Declaration

func encode(to encoder: any Encoder) throws

Parameters

  • encoder:

    An object that the captured structure serializes to.