Open kpcyrd opened 6 years ago
This wouldn't be correct, as lua tables can have floating-point keys, which are not hashable, so it would be incorrect to disallow AnyLuaValue
from representing this. The correct solution, I think, would be to have impl From<AnyHashableLuaValue> for AnyLuaValue
.
I'm having trouble converting from
HashMap<AnyHashableLuaValue, AnyLuaValue>
toAnyLuaValue::LuaArray
due to this. Since the first element is the key, I thinkAnyHashableLuaValue
is the correct way to go here.Thanks!