pub trait FromJavaValue<'j, J>: Sized {
// Required method
fn from_jvalue(env: JNIEnv<'j>, jvalue: JValue<'j>) -> Self;
}
Expand description
Convert from a JValue (return type in Java) into the Rust type
This is infallible because the generated code using it should “know” that the type is already correct
Required Methods§
fn from_jvalue(env: JNIEnv<'j>, jvalue: JValue<'j>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.