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