Trait StaticMethod

Source
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§

Source

const NAME: &str

Required Associated Types§

Provided Methods§

Source

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.

Implementors§