232
I love Rust
(lemmy.blahaj.zone)
Post funny things about programming here! (Or just rant about your favourite programming language.)
I've only had to implement equality in C# but that didn't seem that hard of a problem. you just expand the operator = function
It's not hard, just if you're doing it for a struct with a lot of fields it's a lot of boilerplate
I just use the HashCode class and compare the results.
Pretty sure there's a source generator for it as well nowadays.