ToJava

Trait ToJava 

Source
pub trait ToJava {
    // Required method
    fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>;
}
Expand description

Trait for types that can be converted to Java objects

Required Methods§

Source

fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>

Implementations on Foreign Types§

Source§

impl ToJava for bool

Source§

fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>

Source§

impl ToJava for f64

Source§

fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>

Source§

impl ToJava for i32

Source§

fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>

Source§

impl ToJava for i64

Source§

fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>

Source§

impl ToJava for String

Source§

fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>

Source§

impl ToJava for Vec<String>

Source§

fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>

Source§

impl ToJava for HashMap<String, String>

Source§

fn to_java<'a>(&self, env: &mut JNIEnv<'a>) -> JObject<'a>

Implementors§