[−][src]Struct jni_glue::ObjectArray
A Java Array of reference types (classes, interfaces, other arrays, etc.)
See also PrimitiveArray for arrays of reference types.
Methods
impl<T: AsValidJObjectAndEnv, E: ThrowableType> ObjectArray<T, E>
[src]
pub fn new<'env>(env: &'env Env, size: usize) -> Local<'env, Self>
[src]
ⓘImportant traits for ObjectArrayIter<'env, T, E>pub fn iter<'env>(&'env self) -> ObjectArrayIter<'env, T, E>
[src]
ⓘImportant traits for ObjectArrayIter<'env, T, E>
pub fn from<'env>(
env: &'env Env,
elements: impl 'env + ExactSizeIterator + Iterator<Item = impl Into<Option<&'env T>>>
) -> Local<'env, Self>
[src]
env: &'env Env,
elements: impl 'env + ExactSizeIterator + Iterator<Item = impl Into<Option<&'env T>>>
) -> Local<'env, Self>
pub fn len(&self) -> usize
[src]
pub fn get<'env>(
&'env self,
index: usize
) -> Result<Option<Local<'env, T>>, Local<'env, E>>
[src]
&'env self,
index: usize
) -> Result<Option<Local<'env, T>>, Local<'env, E>>
XXX: Expose this via std::ops::Index
pub fn set<'env>(
&'env self,
index: usize,
value: impl Into<Option<&'env T>>
) -> Result<(), Local<'env, E>>
[src]
&'env self,
index: usize,
value: impl Into<Option<&'env T>>
) -> Result<(), Local<'env, E>>
XXX: I don't think there's a way to expose this via std::ops::IndexMut sadly?
Trait Implementations
impl<T: AsValidJObjectAndEnv, E: ThrowableType> JniType for ObjectArray<T, E>
[src]
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
[src]
Auto Trait Implementations
impl<T, E> RefUnwindSafe for ObjectArray<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> !Send for ObjectArray<T, E>
impl<T, E> !Sync for ObjectArray<T, E>
impl<T, E> Unpin for ObjectArray<T, E> where
E: Unpin,
T: Unpin,
E: Unpin,
T: Unpin,
impl<T, E> UnwindSafe for ObjectArray<T, E> where
E: UnwindSafe,
T: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,