Struct java_spaghetti::IntArray
source · pub struct IntArray(/* private fields */);
Expand description
A PrimitiveArray implementation.
Trait Implementations§
source§impl JniType for IntArray
impl JniType for IntArray
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
source§impl PrimitiveArray<i32> for IntArray
impl PrimitiveArray<i32> for IntArray
source§fn new<'env>(env: Env<'env>, size: usize) -> Local<'env, Self>
fn new<'env>(env: Env<'env>, size: usize) -> Local<'env, Self>
Uses env.New{Type}Array to create a new java array containing “size” elements.
source§fn new_from<'env>(env: Env<'env>, elements: &[jint]) -> Local<'env, Self>
fn new_from<'env>(env: Env<'env>, elements: &[jint]) -> Local<'env, Self>
Uses env.New{Type}Array + Set{Type}ArrayRegion to create a new java array containing a copy of “elements”.
source§fn get_region(&self, start: usize, elements: &mut [jint])
fn get_region(&self, start: usize, elements: &mut [jint])
Uses env.Get{Type}ArrayRegion to read the contents of the java array from [start .. start + elements.len())
source§fn set_region(&self, start: usize, elements: &[jint])
fn set_region(&self, start: usize, elements: &[jint])
Uses env.Set{Type}ArrayRegion to set the contents of the java array from [start .. start + elements.len())
source§fn get_region_as_vec(&self, range: impl RangeBounds<usize>) -> Vec<T>
fn get_region_as_vec(&self, range: impl RangeBounds<usize>) -> Vec<T>
Uses env.GetArrayLength + env.Get{Type}ArrayRegion to read the contents of the java array from range into a new Vec.
Auto Trait Implementations§
impl Freeze for IntArray
impl RefUnwindSafe for IntArray
impl !Send for IntArray
impl !Sync for IntArray
impl Unpin for IntArray
impl UnwindSafe for IntArray
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