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