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.
- 0 Posts
- 2 Comments
Joined 3 years ago
Cake day: February 6th, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.


Rust community might be phlegm but the language itself should be yellow bile, while c++ should be phlegm.
IMO