pub trait JObjNew {
type Fields: Default;
// Required method
fn _new(this: &GlobalRef, fields: Self::Fields) -> Self;
// Provided method
fn null() -> Self
where Self: Sized,
Self::Fields: Default { ... }
}
Expand description
用于从java对象创建本地对象。
Required Associated Types§
Required Methods§
Provided Methods§
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.