-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Result<T, E> as a return type from Rust -> C++ #404
Labels
🪲 bug
Something isn't working
Comments
9 tasks
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
May 29, 2023
This allows us to have a separate module for independent helpers for dealing with syn, CXX, and C++ together. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jun 22, 2023
This allows us to have a separate module for independent helpers for dealing with syn, CXX, and C++ together. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jun 22, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jun 22, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jun 22, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jun 22, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jun 22, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jun 22, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 4, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 4, 2023
This allows us to have a separate module for independent helpers for dealing with syn, CXX, and C++ together. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 4, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 4, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 4, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 4, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 18, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
This then avoids us needing to generate Rust methods with fully qualified types on the Rust side and removes a load of generation. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
This allows us to have a separate module for independent helpers for dealing with syn, CXX, and C++ together. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
This allows us to have a separate module for independent helpers for dealing with syn, CXX, and C++ together. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 19, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
This allows us later to be able to used qualified mappings. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
This means that we refer to MyObject as ffi::MyObject when it's a type. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
…alified Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 24, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
This allows us later to be able to used qualified mappings. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
This means that we refer to MyObject as ffi::MyObject when it's a type. Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
…alified Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
Related to KDAB#404
ahayzen-kdab
added a commit
to ahayzen-kdab/cxx-qt
that referenced
this issue
Jul 26, 2023
Be-ing
pushed a commit
that referenced
this issue
Jul 26, 2023
This allows us later to be able to used qualified mappings. Related to #404
Be-ing
pushed a commit
that referenced
this issue
Jul 26, 2023
Be-ing
pushed a commit
that referenced
this issue
Jul 26, 2023
This means that we refer to MyObject as ffi::MyObject when it's a type. Related to #404
Be-ing
pushed a commit
that referenced
this issue
Jul 26, 2023
Be-ing
pushed a commit
that referenced
this issue
Jul 26, 2023
Be-ing
pushed a commit
that referenced
this issue
Jul 26, 2023
Be-ing
pushed a commit
that referenced
this issue
Jul 26, 2023
Be-ing
pushed a commit
that referenced
this issue
Jul 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://cxx.rs/binding/result.html#returning-result-from-rust-to-c
We need to add support for returning a Result in invokables, this is tricky as the CXX and method types are different. Then Result is only supported in a return type and not a parameter (?).
Consider implementing the API ideas in dtolnay/cxx#1144 as part of this.
So
Result<T, E>
The text was updated successfully, but these errors were encountered: