Trait robusta_jni::convert::unchecked::FromJavaValue
source · pub trait FromJavaValue<'env: 'borrow, 'borrow>: Signature {
type Source: JavaValue<'env>;
const SIG_TYPE: &'static str = <Self as Signature>::SIG_TYPE;
// Required method
fn from(s: Self::Source, env: &'borrow JNIEnv<'env>) -> Self;
}
Expand description
Conversion trait from Java values to Rust values, analogous to From. Used when converting types that are input to JNI-available functions.
Notes on derive macro
The same notes on TryFromJavaValue
apply.
Required Associated Types§
Provided Associated Constants§
Required Methods§
Object Safety§
This trait is not object safe.