pub struct AutoPrimitiveArray<'a, 'b>where
'a: '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§
Source§impl<'a, 'b> AutoPrimitiveArray<'a, 'b>
impl<'a, 'b> AutoPrimitiveArray<'a, 'b>
Trait Implementations§
Source§impl<'a, 'b> Drop for AutoPrimitiveArray<'a, 'b>
impl<'a, 'b> Drop for AutoPrimitiveArray<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for AutoPrimitiveArray<'a, 'b>
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>
impl<'a, 'b> UnwindSafe for AutoPrimitiveArray<'a, 'b>
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