« first day (3482 days earlier)   

5:36 AM
@MatthieuM. it's not on purpose
that so weird XD
@DenysSéguret I think you can derive PartielEq at this point :p
 
@Stargateur Not when the struct contains other fields (unless there's some field attribute I don't know)
 
no attribute no
but you could make a sub structure that only contain the field you want to compare
 
or just a PartialEq implementation and forget it
 
6:01 AM
I think there is room for improprement with a sub structure, clearly this structure is supicious since you ignore data in it for it's eq, so that some sort do it all structure, maybe split a little would make the code better.
 
6:11 AM
Maybe but the whole lib is concise (775 LOC) and works, so there's no real incentive in making it bigger by splitting a set of private fields. It's bet: crates.io/crates/bet
 
wait you compare all the field
problem with generic ?
that why I prefer not put contrains on the structure itself if not needed
it doesn't look needed here
 
7:01 AM
It's because of the derive
(maybe some can be removed, I wrote this a loong time ago, at the begining of broot, both my knowledge and the compiler changed since)
 

« first day (3482 days earlier)