Closed richarddd closed 11 months ago
I added a derive for Eq and Hash to persistant. Since all javascript values implement Eq and Hash this should allow the persistant object to be stored in hashmaps again.
I see it's implemented for each JS value (Object,Function etc) but not for Value
itself. I'm i missing something here?
I'm trying to put a bunch of values in a HashSet and HashMap:
the trait bound `rquickjs::Object<'_>: std::hash::Hash` is not satisfied
the trait `std::hash::Hash` is not implemented for `rquickjs::Object<'_>
the trait bound `rquickjs::Object<'_>: std::cmp::Eq` is not satisfied
the trait `std::cmp::Eq` is not implemented for `rquickjs::Object<'_>`
I reimplemented the Hash and Eq in 8b2079c are you on that commit or more recent? If you are still using the latest 0.4.0-beta version, I haven't pushed out a version with those changes yet.
Seems like this got removed from the class refactoring PR. It's now no longer possible to store Values in a Hash map.