pub unsafe trait JBindingType {
const SIGNATURE: &'static str;
const NAME: &'static str;
// Required methods
unsafe fn to_jvalue(&self) -> jvalue;
unsafe fn to_jvalue_ref<'obj_ref>(&'obj_ref self) -> JValue<'_, 'obj_ref>;
}
Expand description
this trait should only be implemented by macro, manually implement this trait will cause undefined behaviour
Required Associated Constants§
Required Methods§
unsafe fn to_jvalue(&self) -> jvalue
unsafe fn to_jvalue_ref<'obj_ref>(&'obj_ref self) -> JValue<'_, 'obj_ref>
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.