tomaka / hlua

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

Implement LuaRead for Vec of any readable type, not just AnyLuaValue. #183

Open tpdickso opened 6 years ago

tpdickso commented 6 years ago

It's necessary not to panic in the read function when failing to read an item now, because while AnyLuaValue never fails, other readable types might. (For example, passing {1, "hi", 3} into a Vec<f64> function argument of a Rust callback should raise an error in the lua context, not crash the program.)