pub trait JavaValue<'env> {
    fn autobox(self, env: &JNIEnv<'env>) -> JObject<'env>;
    fn unbox(s: JObject<'env>, env: &JNIEnv<'env>) -> Self;
}
Expand description

A trait for types that are ffi-safe to use with JNI. It is implemented for primitives, JObject and jobject. Users that want automatic conversion should instead implement FromJavaValue, IntoJavaValue and/or TryFromJavaValue, TryIntoJavaValue

Required methods

Convert instance to a JObject.

Convert JObject to the implementing type.

Implementations on Foreign Types

Implementors