pub struct JObjectArray<'local>(/* private fields */);
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: *mut _jobject) -> JObjectArray<'local>
pub unsafe fn from_raw(raw: *mut _jobject) -> JObjectArray<'local>
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.
Trait Implementations§
Source§impl<'local> AsJArrayRaw<'local> for JObjectArray<'local>
impl<'local> AsJArrayRaw<'local> for JObjectArray<'local>
Source§fn as_jarray_raw(&self) -> *mut _jobject
fn as_jarray_raw(&self) -> *mut _jobject
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§fn default() -> JObjectArray<'local>
fn default() -> JObjectArray<'local>
Returns the “default value” for a type. Read more
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§fn from(other: &'obj_ref JObject<'local>) -> &'obj_ref JObjectArray<'local>
fn from(other: &'obj_ref JObject<'local>) -> &'obj_ref JObjectArray<'local>
Converts to this type from the input type.
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§fn from(other: JObject<'_>) -> JObjectArray<'local>
fn from(other: JObject<'_>) -> JObjectArray<'local>
Converts to this type from the input type.
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.
Auto Trait Implementations§
impl<'local> Freeze for JObjectArray<'local>
impl<'local> RefUnwindSafe for JObjectArray<'local>
impl<'local> Send for JObjectArray<'local>where
'local: 'static,
impl<'local> Sync for JObjectArray<'local>where
'local: 'static,
impl<'local> Unpin for JObjectArray<'local>
impl<'local> UnwindSafe for JObjectArray<'local>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more