encode(to:) Encodes the pose value into the given encoder. Declarationfunc encode(to encoder: any Encoder) throws