pub trait JavaType { }
Expand description
A trait that represents Rust types that are mappable to JNI types. This trait has to be implemented for all types that need to be passed as arguments to or returned from Java functions.
THIS TRAIT SHOULD NOT BE USED MANUALLY.
This trait should only be implemented and used by generated code.
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.
Implementations on Foreign Types§
impl JavaType for bool
impl JavaType for char
impl JavaType for f64
impl JavaType for i16
impl JavaType for i32
impl JavaType for i64
impl JavaType for u8
impl JavaType for ()
impl<'a, T> JavaType for &'a T
Make references mappable to JNI types of their referenced types.