[−][src]Enum j4rs::InvocationArg
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
Rust
Fields of Rust
Methods
impl InvocationArg
[src]
pub fn new<T: ?Sized>(arg: &T, class_name: &str) -> InvocationArg where
T: Serialize,
[src]
T: Serialize,
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]
fn from(instance: Instance) -> InvocationArg
[src]
impl From<String> for InvocationArg
[src]
fn from(s: String) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [String], &'b Jvm)> for InvocationArg
[src]
impl<'a> From<&'a str> for InvocationArg
[src]
fn from(s: &str) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [&'a str], &'b Jvm)> for InvocationArg
[src]
impl From<bool> for InvocationArg
[src]
fn from(b: bool) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [bool], &'b Jvm)> for InvocationArg
[src]
impl From<i8> for InvocationArg
[src]
fn from(b: i8) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [i8], &'b Jvm)> for InvocationArg
[src]
impl From<char> for InvocationArg
[src]
fn from(c: char) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [char], &'b Jvm)> for InvocationArg
[src]
impl From<i16> for InvocationArg
[src]
fn from(i: i16) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [i16], &'b Jvm)> for InvocationArg
[src]
impl From<i32> for InvocationArg
[src]
fn from(i: i32) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [i32], &'b Jvm)> for InvocationArg
[src]
impl From<i64> for InvocationArg
[src]
fn from(l: i64) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [i64], &'b Jvm)> for InvocationArg
[src]
impl From<f32> for InvocationArg
[src]
fn from(f: f32) -> InvocationArg
[src]
impl<'a, 'b> From<(&'a [f32], &'b Jvm)> for InvocationArg
[src]
impl From<f64> for InvocationArg
[src]
fn from(f: f64) -> 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]
T: Serialize,
impl From<()> for InvocationArg
[src]
fn from(_: ()) -> InvocationArg
[src]
impl<'a> From<&'a String> for InvocationArg
[src]
fn from(s: &String) -> InvocationArg
[src]
impl<'a> From<&'a bool> for InvocationArg
[src]
fn from(b: &bool) -> InvocationArg
[src]
impl<'a> From<&'a i8> for InvocationArg
[src]
fn from(b: &i8) -> InvocationArg
[src]
impl<'a> From<&'a char> for InvocationArg
[src]
fn from(c: &char) -> InvocationArg
[src]
impl<'a> From<&'a i16> for InvocationArg
[src]
fn from(i: &i16) -> InvocationArg
[src]
impl<'a> From<&'a i32> for InvocationArg
[src]
fn from(i: &i32) -> InvocationArg
[src]
impl<'a> From<&'a i64> for InvocationArg
[src]
fn from(l: &i64) -> InvocationArg
[src]
impl<'a> From<&'a f32> for InvocationArg
[src]
fn from(f: &f32) -> InvocationArg
[src]
impl<'a> From<&'a f64> for InvocationArg
[src]
fn from(f: &f64) -> InvocationArg
[src]
impl Serialize for InvocationArg
[src]
Auto Trait Implementations
impl Send for InvocationArg
impl Unpin for InvocationArg
impl !Sync for InvocationArg
impl UnwindSafe for InvocationArg
impl RefUnwindSafe for InvocationArg
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,