tomaka / hlua

Rust library to interface with Lua
MIT License
507 stars 48 forks source link

Clarify the difference between AnyLuaValue values and the specialised Lua* structs #176

Open linkmauve opened 6 years ago

linkmauve commented 6 years ago

It’s unclear in the documentation which should be used in which case.

Another option would be to unify them, I guess.

tomaka commented 6 years ago

If you read a specialized Lua* struct, you will get either a conversion (eg. you're trying to read a number into a string) or an error (eg. you're trying to read a function into a string).