pub struct ArrowDeviceArrayOwned { /* private fields */ }Implementations§
Source§impl ArrowDeviceArrayOwned
impl ArrowDeviceArrayOwned
pub fn as_ptr(&self) -> *mut ArrowDeviceArray
pub fn into_raw(self) -> *mut ArrowDeviceArray
Sourcepub unsafe fn from_raw(ptr: *mut ArrowDeviceArray) -> Self
pub unsafe fn from_raw(ptr: *mut ArrowDeviceArray) -> Self
Rebuild an owned wrapper from a raw ArrowDeviceArray pointer.
§Safety
ptr must be a valid, uniquely owned pointer produced by
ArrowDeviceArrayOwned::into_raw or an equivalent allocation that
transfers ownership of the underlying ArrowDeviceArray.
All referenced device ranges must be live and producer-ready at handoff.
The producer must coordinate further access, and metadata plus release
must be usable from any host thread for the entire transferred lifetime.
Source§impl ArrowDeviceArrayOwned
impl ArrowDeviceArrayOwned
Sourcepub unsafe fn into_ffi_parts(
self,
) -> (i32, i32, Self, FFI_ArrowArray, FFI_ArrowSchema)
pub unsafe fn into_ffi_parts( self, ) -> (i32, i32, Self, FFI_ArrowArray, FFI_ArrowSchema)
Take ownership of the underlying FFI array + schema.
§Safety
The returned outer owner must outlive both FFI objects and every parsed buffer derived from them. All three objects must eventually be released.
Trait Implementations§
Source§impl Drop for ArrowDeviceArrayOwned
impl Drop for ArrowDeviceArrayOwned
impl Send for ArrowDeviceArrayOwned
impl Sync for ArrowDeviceArrayOwned
Auto Trait Implementations§
impl Freeze for ArrowDeviceArrayOwned
impl RefUnwindSafe for ArrowDeviceArrayOwned
impl Unpin for ArrowDeviceArrayOwned
impl UnsafeUnpin for ArrowDeviceArrayOwned
impl UnwindSafe for ArrowDeviceArrayOwned
Blanket Implementations§
impl<T> Allocation for T
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