You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pubunsafefnnative_function_returning_scalar<J,R>(env:EnvPtr<'_>,op:implFnOnce() -> R) -> R
where
J:Upcast<crate::java::lang::Object> + Upcast<J>,
R:JavaScalar,
and that function requires a R: JavaScalar. It should require a R: ToJavaScalar (much like native_function_returning_object requires a R: ToJavaImpl<J>. That ToJavaScalar trait should then be implemented for Result.
The text was updated successfully, but these errors were encountered:
I tried to make a native function...
and the Rust code
but this doesn't compile because it invokes
duchess/src/jvm.rs
Lines 182 to 185 in 6d50afe
and that function requires a
R: JavaScalar
. It should require aR: ToJavaScalar
(much likenative_function_returning_object
requires aR: ToJavaImpl<J>
. ThatToJavaScalar
trait should then be implemented forResult
.The text was updated successfully, but these errors were encountered: