mlua icon indicating copy to clipboard operation
mlua copied to clipboard

Impl `ObjectLike` for `Either`

Open Diegovsky opened this issue 1 year ago • 0 comments

Since that trait is sealed, it would be nice and convenient to add an impl for it to Either if both sides implement it. That way, you could have a function that receives Either<Table, AnyUserData> and just use it normally, with a very high level API.

Later, you could implement Value::(as/is)_object_like() methods.

I would love to contribute this. What do you think?

Diegovsky avatar Dec 27 '24 19:12 Diegovsky