TypedArrayExt

Trait TypedArrayExt 

Source
pub trait TypedArrayExt {
    // Required method
    fn typed_get_array_length<R: StrongRef, T: ObjectType>(
        &self,
        array: &Object<R, Array<T>>,
    ) -> Result<i32, LocalObject<'_, JavaThrowable>>;
}
Expand description

Extension methods for typed arrays.

Required Methods§

Source

fn typed_get_array_length<R: StrongRef, T: ObjectType>( &self, array: &Object<R, Array<T>>, ) -> Result<i32, LocalObject<'_, JavaThrowable>>

Get the length of an array.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'vm> TypedArrayExt for JNIEnv<'vm>

Source§

fn typed_get_array_length<R: StrongRef, T: Type + 'static>( &self, array: &Object<R, Array<T>>, ) -> Result<i32, LocalObject<'_, JavaThrowable>>

Implementors§