[][src]Struct jni_glue::ObjectArray

#[repr(transparent)]
pub struct ObjectArray<T: AsValidJObjectAndEnv, E: ThrowableType>(_, _);

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]

pub fn from<'env>(
    env: &'env Env,
    elements: impl 'env + ExactSizeIterator + Iterator<Item = impl Into<Option<&'env T>>>
) -> Local<'env, Self>
[src]

pub fn len(&self) -> usize[src]

pub fn get<'env>(
    &'env self,
    index: usize
) -> Result<Option<Local<'env, T>>, Local<'env, E>>
[src]

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]

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]

Auto Trait Implementations

impl<T, E> RefUnwindSafe for ObjectArray<T, E> where
    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

impl<T, E> UnwindSafe for ObjectArray<T, E> where
    E: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.