derive is a keyword which lets the compiler implement basic functionality for you, so you don't have to write it yourself. In this case the basic functionality is Eq and PartialEq which allows you to compare your struct/enum/... More info here.
derive is a keyword which lets the compiler implement basic functionality for you, so you don't have to write it yourself. In this case the basic functionality is Eq and PartialEq which allows you to compare your struct/enum/... More info here.