Struct jni::objects::AutoPrimitiveArray
source · [−]pub struct AutoPrimitiveArray<'a: 'b, 'b> { /* private fields */ }
Expand description
Auto-release wrapper for pointer-based primitive arrays.
This wrapper is used to wrap pointers returned by GetPrimitiveArrayCritical.
While wrapped, the object can be accessed via the From
impl.
AutoPrimitiveArray provides automatic array release through a call to ReleasePrimitiveArrayCritical when it goes out of scope.
Implementations
sourceimpl<'a, 'b> AutoPrimitiveArray<'a, 'b>
impl<'a, 'b> AutoPrimitiveArray<'a, 'b>
Trait Implementations
sourceimpl<'a, 'b> Drop for AutoPrimitiveArray<'a, 'b>
impl<'a, 'b> Drop for AutoPrimitiveArray<'a, 'b>
sourceimpl<'a> From<&'a AutoPrimitiveArray<'a, '_>> for *mut c_void
impl<'a> From<&'a AutoPrimitiveArray<'a, '_>> for *mut c_void
sourcefn from(other: &'a AutoPrimitiveArray<'_, '_>) -> *mut c_void
fn from(other: &'a AutoPrimitiveArray<'_, '_>) -> *mut c_void
Converts to this type from the input type.
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for AutoPrimitiveArray<'a, 'b>
impl<'a, 'b> !Send for AutoPrimitiveArray<'a, 'b>
impl<'a, 'b> !Sync for AutoPrimitiveArray<'a, 'b>
impl<'a, 'b> Unpin for AutoPrimitiveArray<'a, 'b> where
'a: 'b,
impl<'a, 'b> UnwindSafe for AutoPrimitiveArray<'a, 'b>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more