Wappen@lemmy.worldtoProgrammer Humor@lemmy.ml•If AI can now speak Italian, it can certainly replace us...
13·
5 months agoNope, they replaced an asterisk with an arrow!
Nope, they replaced an asterisk with an arrow!
Imagine the new colors we could discover
Thank you, that’s a great platform I did not think existed.
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 thePartialEq
trait yourself if you need custom equality checks.