I’d like to point out, the value add of Rust isn’t speed, it’s safety in a low-level language. C is also just as fast, it’s just that Rust guarantees safety in a wide class of potential catastrophic bugs with little to no runtime overhead, by using the design of the language and compiler.
Swift:
: Equatable
(assuming all the members of the struct are themselves equatable, if not the compiler will tell you to implement the
==
method)