You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PartialEq is implemented for things in js_sys: #1444
However, we still can't check for equality between web_sys::Element's for example.
Proposed Solution
Not sure if this is automatic via a single derive or in a macro or what, sorry! But on Discord @Pauan indicated that it's somehow doable.
Additional Context
For a use case - we currently can't check if Document.pointerLockElement is equal to the element that initiated getting pointer lock. Workarounds are possible (like setting an id and comparing that), but it's not idiomatic and it would be much nicer to have direct equality checks.
The text was updated successfully, but these errors were encountered:
Motivation
PartialEq is implemented for things in js_sys: #1444
However, we still can't check for equality between
web_sys::Element
's for example.Proposed Solution
Not sure if this is automatic via a single
derive
or in a macro or what, sorry! But on Discord @Pauan indicated that it's somehow doable.Additional Context
For a use case - we currently can't check if
Document.pointerLockElement
is equal to the element that initiated getting pointer lock. Workarounds are possible (like setting an id and comparing that), but it's not idiomatic and it would be much nicer to have direct equality checks.The text was updated successfully, but these errors were encountered: