pub enum FloatArray {}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(&CStr) -> 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 JNI
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 JNI
New{Type}Array + Set{Type}ArrayRegion to create a new Java array containing a copy of “elements”.Source§fn len(self: &Ref<'_, Self>) -> usize
fn len(self: &Ref<'_, Self>) -> usize
Uses JNI
GetArrayLength to get the length of the Java array.Source§fn get_region(self: &Ref<'_, Self>, start: usize, elements: &mut [jfloat])
fn get_region(self: &Ref<'_, Self>, start: usize, elements: &mut [jfloat])
Uses JNI
Get{Type}ArrayRegion to read the contents of the Java array within [start .. start + elements.len()]. Read moreSource§fn set_region(self: &Ref<'_, Self>, start: usize, elements: &[jfloat])
fn set_region(self: &Ref<'_, Self>, start: usize, elements: &[jfloat])
Uses JNI
Set{Type}ArrayRegion to set the contents of the Java array within [start .. start + elements.len()]. Read moreSource§fn is_empty(self: &Ref<'_, Self>) -> bool
fn is_empty(self: &Ref<'_, Self>) -> bool
Uses JNI
GetArrayLength to get the length of the Java array, returns true if it is 0.Source§fn get_region_as_vec(
self: &Ref<'_, Self>,
range: impl RangeBounds<usize>,
) -> Vec<T>
fn get_region_as_vec( self: &Ref<'_, Self>, range: impl RangeBounds<usize>, ) -> Vec<T>
Uses JNI
GetArrayLength + Get{Type}ArrayRegion to read the contents of the Java array within given range
into a new Vec. Read moreAuto 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