Enum jni::objects::JValue [] [src]

pub enum JValue<'a> {
    Object(JObject<'a>),
    Byte(jbyte),
    Char(jchar),
    Short(jshort),
    Int(jint),
    Long(jlong),
    Bool(jboolean),
    Float(jfloat),
    Double(jdouble),
    Void,
}

Rusty version of the JNI C jvalue enum. Used in Java method call arguments and returns.

Variants

Methods

impl<'a> JValue<'a>
[src]

[src]

Convert the enum to its jni-compatible equivalent.

[src]

Get the type name for the enum variant.

[src]

Get the primitive type for the enum variant. If it's not a primitive (i.e. an Object), returns None.

[src]

Try to unwrap to an Object.

[src]

Try to unwrap to a boolean.

[src]

Try to unwrap to a byte.

[src]

Try to unwrap to a char.

[src]

Try to unwrap to a double.

[src]

Try to unwrap to a float.

[src]

Try to unwrap to an int.

[src]

Try to unwrap to a long.

[src]

Try to unwrap to a short.

[src]

Try to unwrap to a void.

Trait Implementations

impl<'a> Clone for JValue<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for JValue<'a>
[src]

impl<'a> Debug for JValue<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> From<JObject<'a>> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<bool> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<jchar> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<jshort> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<jfloat> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<jdouble> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<jint> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<jlong> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<jbyte> for JValue<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<()> for JValue<'a>
[src]

[src]

Performs the conversion.