Struct jni::objects::JObjectArray
source · #[repr(transparent)]pub struct JObjectArray<'local>(_);
Expand description
Lifetime’d representation of a jobjectArray
which wraps a JObject
reference
Implementations§
source§impl<'local> JObjectArray<'local>
impl<'local> JObjectArray<'local>
sourcepub unsafe fn from_raw(raw: jobjectArray) -> Self
pub unsafe fn from_raw(raw: jobjectArray) -> Self
Creates a JObjectArray
that wraps the given raw
jobjectArray
Safety
raw
may be a null pointer. If raw
is not a null pointer, then:
raw
must be a valid raw JNI local reference.- There must not be any other
JObject
representing the same local reference. - The lifetime
'local
must not outlive the local reference frame that the local reference was created in.
sourcepub fn into_raw(self) -> jobjectArray
pub fn into_raw(self) -> jobjectArray
Unwrap to the raw jni type.
Methods from Deref<Target = JObject<'local>>§
Trait Implementations§
source§impl<'local> AsJArrayRaw<'local> for JObjectArray<'local>
impl<'local> AsJArrayRaw<'local> for JObjectArray<'local>
source§fn as_jarray_raw(&self) -> jarray
fn as_jarray_raw(&self) -> jarray
Returns the raw JNI pointer as a
jarray
source§impl<'local> AsRef<JObject<'local>> for JObjectArray<'local>
impl<'local> AsRef<JObject<'local>> for JObjectArray<'local>
source§impl<'local> AsRef<JObjectArray<'local>> for JObjectArray<'local>
impl<'local> AsRef<JObjectArray<'local>> for JObjectArray<'local>
source§fn as_ref(&self) -> &JObjectArray<'local>
fn as_ref(&self) -> &JObjectArray<'local>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'local> Debug for JObjectArray<'local>
impl<'local> Debug for JObjectArray<'local>
source§impl<'local> Default for JObjectArray<'local>
impl<'local> Default for JObjectArray<'local>
source§impl<'local> Deref for JObjectArray<'local>
impl<'local> Deref for JObjectArray<'local>
source§impl<'local, 'obj_ref> From<&'obj_ref JObject<'local>> for &'obj_ref JObjectArray<'local>
impl<'local, 'obj_ref> From<&'obj_ref JObject<'local>> for &'obj_ref JObjectArray<'local>
This conversion assumes that the JObject
is a pointer to a class object.
source§impl<'local> From<JObject<'local>> for JObjectArray<'local>
impl<'local> From<JObject<'local>> for JObjectArray<'local>
This conversion assumes that the JObject
is a pointer to a class object.
source§impl<'local> From<JObjectArray<'local>> for JObject<'local>
impl<'local> From<JObjectArray<'local>> for JObject<'local>
source§fn from(other: JObjectArray<'_>) -> JObject<'_>
fn from(other: JObjectArray<'_>) -> JObject<'_>
Converts to this type from the input type.