pub trait StaticMethod {
type Param: AsParam;
type Return: FromValue;
const NAME: &str;
// Provided method
fn call(
self_: ClassDecl,
env: &mut JNIEnv<'_>,
params: Self::Param,
) -> JResult<Self::Return> { ... }
}
Required Associated Constants§
Required Associated Types§
Provided Methods§
fn call( self_: ClassDecl, env: &mut JNIEnv<'_>, params: Self::Param, ) -> JResult<Self::Return>
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.