Struct java_spaghetti::LongArray
source · pub struct LongArray(/* private fields */);
Expand description
A PrimitiveArray implementation.
Trait Implementations§
source§impl JniType for LongArray
impl JniType for LongArray
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
source§impl PrimitiveArray<i64> for LongArray
impl PrimitiveArray<i64> for LongArray
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: &[jlong]) -> Local<'env, Self>
fn new_from<'env>(env: Env<'env>, elements: &[jlong]) -> 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 [jlong])
fn get_region(&self, start: usize, elements: &mut [jlong])
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: &[jlong])
fn set_region(&self, start: usize, elements: &[jlong])
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 LongArray
impl RefUnwindSafe for LongArray
impl !Send for LongArray
impl !Sync for LongArray
impl Unpin for LongArray
impl UnwindSafe for LongArray
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