# Compare structs for Equality - manual implementation

* PartialEq
* eq


* The `#[allow(dead_code)]` part is only needed as in this example we never use the `name` field. In real code you will probably not need it.

{% embed include file="src/examples/struct/compare-structs-for-equality-manually/src/main.rs" %}
{% embed include file="src/examples/struct/compare-structs-for-equality-manually/out.out" %}


