pub trait IntoJavaObject<'j> {
const CLASS: &'static str;
// Required method
fn into_java_object(
self,
env: &mut JNIEnv<'j>,
) -> Result<JObject<'j>, Error>;
}
Expand description
Specifies how a Rust type should be converted into a Java object.
Required Associated Constants§
Required Methods§
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.