[][src]Enum j4rs::InvocationArg

pub enum InvocationArg {
    Java {
        instance: Instance,
        class_name: String,
        arg_from: String,
    },
    Rust {
        json: String,
        class_name: String,
        arg_from: String,
    },
}

Struct that carries an argument that is used for method invocations in Java.

Variants

Java

An arg that is created in the Java world.

Fields of Java

instance: Instanceclass_name: Stringarg_from: String
Rust

Fields of Rust

json: Stringclass_name: Stringarg_from: String

Methods

impl InvocationArg[src]

pub fn new<T: ?Sized>(arg: &T, class_name: &str) -> InvocationArg where
    T: Serialize
[src]

Creates a InvocationArg::Rust. This is default for the Args that are created from the Rust code.

pub fn as_java_ptr(&self, jvm: &Jvm) -> jobject[src]

Creates a jobject from this InvocationArg.

Trait Implementations

impl<'a> From<(&'a str, &'a str)> for InvocationArg[src]

impl From<Instance> for InvocationArg[src]

impl From<String> for InvocationArg[src]

impl<'a, 'b> From<(&'a [String], &'b Jvm)> for InvocationArg[src]

impl<'a> From<&'a str> for InvocationArg[src]

impl<'a, 'b> From<(&'a [&'a str], &'b Jvm)> for InvocationArg[src]

impl From<bool> for InvocationArg[src]

impl<'a, 'b> From<(&'a [bool], &'b Jvm)> for InvocationArg[src]

impl From<i8> for InvocationArg[src]

impl<'a, 'b> From<(&'a [i8], &'b Jvm)> for InvocationArg[src]

impl From<char> for InvocationArg[src]

impl<'a, 'b> From<(&'a [char], &'b Jvm)> for InvocationArg[src]

impl From<i16> for InvocationArg[src]

impl<'a, 'b> From<(&'a [i16], &'b Jvm)> for InvocationArg[src]

impl From<i32> for InvocationArg[src]

impl<'a, 'b> From<(&'a [i32], &'b Jvm)> for InvocationArg[src]

impl From<i64> for InvocationArg[src]

impl<'a, 'b> From<(&'a [i64], &'b Jvm)> for InvocationArg[src]

impl From<f32> for InvocationArg[src]

impl<'a, 'b> From<(&'a [f32], &'b Jvm)> for InvocationArg[src]

impl From<f64> for InvocationArg[src]

impl<'a, 'b> From<(&'a [f64], &'b Jvm)> for InvocationArg[src]

impl<'a, 'b, T> From<(&'a [T], &'a str, &'b Jvm)> for InvocationArg where
    T: Serialize
[src]

impl From<()> for InvocationArg[src]

impl<'a> From<&'a String> for InvocationArg[src]

impl<'a> From<&'a bool> for InvocationArg[src]

impl<'a> From<&'a i8> for InvocationArg[src]

impl<'a> From<&'a char> for InvocationArg[src]

impl<'a> From<&'a i16> for InvocationArg[src]

impl<'a> From<&'a i32> for InvocationArg[src]

impl<'a> From<&'a i64> for InvocationArg[src]

impl<'a> From<&'a f32> for InvocationArg[src]

impl<'a> From<&'a f64> for InvocationArg[src]

impl Serialize for InvocationArg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.