impl PartialEq for ValueRef calls ffi::lua_rawequal, which does a reference equality check. Most mlua ValueRef wrapper types derive PartialEq, and thus use reference equality. However, the mlua String type implements its own PartialEq using member-wise comparison of u8 slices.
I don't see a way to get ValueRef out of String (it's pub(crate)), so how can I do reference equality with Lua strings from rust?
impl PartialEq for ValueRefcallsffi::lua_rawequal, which does a reference equality check. Most mluaValueRefwrapper types derivePartialEq, and thus use reference equality. However, the mluaStringtype implements its ownPartialEqusing member-wise comparison ofu8slices.I don't see a way to get
ValueRefout ofString(it'spub(crate)), so how can I do reference equality with Lua strings from rust?