Trait AsArg

Source
pub unsafe trait AsArg<T>: Sized {
    // Required method
    fn as_arg(&self) -> jobject;

    // Provided method
    fn as_arg_jvalue(&self) -> jvalue { ... }
}

Required Methods§

Source

fn as_arg(&self) -> jobject

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.

Implementations on Foreign Types§

Source§

impl<T: ReferenceType, U: AsArg<T>> AsArg<T> for &U

Source§

fn as_arg(&self) -> jobject

Source§

impl<T: ReferenceType, U: AsArg<T>> AsArg<T> for &mut U

Source§

fn as_arg(&self) -> jobject

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Option<&Global<U>>

Source§

fn as_arg(&self) -> jobject

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Option<&Local<'_, U>>

Source§

fn as_arg(&self) -> jobject

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Option<&Ref<'_, U>>

Source§

fn as_arg(&self) -> jobject

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Option<Global<U>>

Source§

fn as_arg(&self) -> jobject

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Option<Local<'_, U>>

Source§

fn as_arg(&self) -> jobject

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Option<Ref<'_, U>>

Source§

fn as_arg(&self) -> jobject

Implementors§

Source§

impl<T: ReferenceType> AsArg<T> for Null

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Global<U>

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Local<'_, U>

Source§

impl<T: ReferenceType, U: AssignableTo<T>> AsArg<T> for Ref<'_, U>