Replies: 1 comment
-
Not intentionaly, I'll implement it! |
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.
-
I'd like to have a lua function return a
Result<T, String>
(or something to that effect), and be able to understand when a function returns aResult<T, String>
. On the Lua side, it should match the convention of returning the error as a second value, non-nil
when there is an error.The
std::result::Result
type implementsIntoLuaMulti
but doesn't seem to implementFromLuaMulti
. Is that intentional or just hasn't been implemented yet?I manage to work around that by using my own
struct MyLuaResult<T>(Result<T, String>);
but it feels like it should be provided by the crate: https://github.com/nitnelave/lldap_plugin_poc/blob/a84a9678713db21ed244f580818f090545d2449c/src/main.rsBeta Was this translation helpful? Give feedback.
All reactions