Skip to content
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

cherry-pick some refactorings #177

Merged
merged 6 commits into from
Jul 16, 2024

Conversation

nikomatsakis
Copy link
Member

I had a branch implementing the ability for Rust types to implement Java callbacks. I'm taking a fresh approach but these commits are some small refactorings that I want to land first and which will be used by the new code.

r? @rcoh

@nikomatsakis nikomatsakis requested a review from rcoh July 15, 2024 20:28
This allows us to have an `into_op` step that
can do some "pre-processing" of the Rust type rather than
forcing it to be a `JvmOp` itself
@rcoh
Copy link
Contributor

rcoh commented Jul 15, 2024

trying to grok the JvmRefOp—my understanding is:

Previously, we only had (by analogy), Future. But we would also like IntoFuture because that's much more convenient to implement. Which on its own wouldn't require the creation of JvmRefOp — but IntoJava only makes sense for references not, scalars?

src/jvm.rs Outdated Show resolved Hide resolved
@nikomatsakis
Copy link
Member Author

nikomatsakis commented Jul 16, 2024 via email

Co-authored-by: Russell Cohen <[email protected]>
@nikomatsakis
Copy link
Member Author

I'm going to land this set of changes, but let's revisit the traits more holistically.

@nikomatsakis nikomatsakis merged commit 55cb4b5 into duchess-rs:main Jul 16, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants