Trait robusta_jni::convert::unchecked::IntoJavaValue
source · pub trait IntoJavaValue<'env>: Signature {
type Target: JavaValue<'env>;
const SIG_TYPE: &'static str = <Self as Signature>::SIG_TYPE;
// Required method
fn into(self, env: &JNIEnv<'env>) -> Self::Target;
}
Expand description
Conversion trait from Rust values to Java values, analogous to Into. Used when converting types returned from JNI-available functions.
The usage of this trait in the generated code can be enabled with the #[call_type(unchecked)]
attribute on a per-method basis.
When using this trait the conversion is assumed to be infallible. Should a conversion fail, a panic will be raised.
Notes on the derive macro
The same notes on TryIntoJavaValue
apply.
Required Associated Types§
Provided Associated Constants§
Required Methods§
Object Safety§
This trait is not object safe.