Replies: 2 comments
-
let func = lua.create_function(|_, ()| Ok("hello")).unwrap(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
synthe102
-
Closely related, but the other way around I have a question at #266 about how to call a function without passing any args. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
I'd like to implement a function that takes no arguments.
However,
Lua.create_function()
expects the rust function to take two arguments.How can I solve this ?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions