miniblog.
← Back to all posts
Wilfred Hughes
Jan 17, 2023 at 00:27
I have mixed feelings about the equality trait in Rust. I have types where sometimes I want to compare by structure, and sometimes compare by reference. I can only implement Eq for one, so which do I pick?