encode(to:)
Encodes the interval state into the provided encoder.
Declaration
func encode(to encoder: any Encoder) throwsParameters
- encoder:
The encoder to write data to.
Discussion
The method throws an error if the interval state is invalid for the specified encoder’s format.