2024-11-15 π programmerhumor β RE: Dunstabzugshaubitze
Equality in rust is value equality per default, thatβs what these traits are for. If you want to check pointer equality youβd use the std::ptr::eq function to check if two pointers are equal, which is rather rare in practice. You can also implement the PartialEq trait yourself if you need custom equality checks.
I worked on software at one point that had at itβs core a number of βmodesβ that it switched between. It was, at the time, in the process of migrating from enums and switch/case trees to an [β¦]
ββββ
ββββ