added eq, partialeq trait for operator equality comparison#1652
added eq, partialeq trait for operator equality comparison#1652alexcrichton merged 2 commits intobytecodealliance:mainfrom
Conversation
alexcrichton
left a comment
There was a problem hiding this comment.
Thanks! The one type I'd hesitate on though is the BinaryReader type, Could that be removed instead? If that only affects BrTable could the BrTable type have a manual Eq implementation?
|
I can do that! To implement |
|
Ideally two different readers would be semantically compared, so you'd for example use |
|
I've done that! Used |
alexcrichton
left a comment
There was a problem hiding this comment.
Looks good to me, thanks!
|
Could this be made into a release so that I can use it? |
|
Wanted to comment that I haven't forgotten this, I just wanted to sort out a few other things before a release. There's no easy way to make patch releases at this time so this involves major version bumps which requires a bit more coordination. |
|
Ok I've turned the crank over at #1663 |
Hi,
I have a use case where I would need to compare different
Operatorenum instances inwasmparserto see if they are the same one. It helps me traverse a.watfile and identify if a particularOperatorthat I am at is the desired one.I've added the
EqandPartialEqtrait toOperatorand all its dependencies to enable this in a clean and easy way.