tomaka / hlua

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

Is there a way to call a Lua function with a HashMap without cloning it? #159

Open sunshowers opened 7 years ago

sunshowers commented 7 years ago

Assuming you have e.g. a HashMap<&'static str, String>, it seems like it should be possible to translate this HashMap into a table and call a Lua function with it as the argument, all without cloning the HashMap. (I might be completely misunderstanding here, of course.)

Is there a way to do that?