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