encode(to:)
Serializes a surface to the specified encoder.
Declaration
func encode(to encoder: any Encoder) throwsParameters
- encoder:
An object that the surface serializes to.
Serializes a surface to the specified encoder.
func encode(to encoder: any Encoder) throwsAn object that the surface serializes to.