How to get the equality of two values of a struct type?

It looks == doesn’t work here, even if all the fields of the struct values can be compared with ==.

Must I define a equal method for the struct type?

Have you looked at std.meta.eql?

4 Likes

Thanks! That is what I need.