pub trait FromValue: Sized {
// Required method
fn signature() -> SignatureComp;
// Provided methods
fn from_object(value: GlobalRef, env: &mut JNIEnv<'_>) -> JResult<Self> { ... }
fn from_value(value: JValue<'_, '_>) -> JResult<Self> { ... }
fn from_null() -> JResult<Self> { ... }
}Required Methods§
fn signature() -> SignatureComp
Provided Methods§
fn from_object(value: GlobalRef, env: &mut JNIEnv<'_>) -> JResult<Self>
fn from_value(value: JValue<'_, '_>) -> JResult<Self>
fn from_null() -> JResult<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.