Trait AsParam

Source
pub trait AsParam {
    // Required methods
    fn signature() -> Vec<SignatureComp>;
    fn as_param<'a>(
        &self,
        env: &mut JNIEnv<'a>,
    ) -> JResult<Vec<JValueGen<JObject<'a>>>>;
}

Required Methods§

Source

fn signature() -> Vec<SignatureComp>

Source

fn as_param<'a>( &self, env: &mut JNIEnv<'a>, ) -> JResult<Vec<JValueGen<JObject<'a>>>>

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§

Source§

impl<T1, T2> AsParam for (T1, T2)
where T1: ToValue, T2: ToValue,

Source§

fn signature() -> Vec<SignatureComp>

Source§

fn as_param<'a>( &self, env: &mut JNIEnv<'a>, ) -> JResult<Vec<JValueGen<JObject<'a>>>>

Source§

impl<T1, T2, T3> AsParam for (T1, T2, T3)
where T1: ToValue, T2: ToValue, T3: ToValue,

Source§

fn signature() -> Vec<SignatureComp>

Source§

fn as_param<'a>( &self, env: &mut JNIEnv<'a>, ) -> JResult<Vec<JValueGen<JObject<'a>>>>

Implementors§

Source§

impl AsParam for NoParam

Source§

impl<T1> AsParam for T1
where T1: ToValue,