pub unsafe fn try_from_raw(
        array: *const FFI_ArrowArray,
        schema: *const FFI_ArrowSchema,
    ) -> Result<Self> {
        if array.is_null() || schema.is_null() {
            return Err(ArrowError::MemoryError(
                "At least one of the pointers passed to `try_from_raw` is null"
                    .to_string(),
            ));
        };
        Ok(Self {
            array: Arc::from_raw(array as *mut FFI_ArrowArray),
            schema: Arc::from_raw(schema as *mut FFI_ArrowSchema),
        })
    }
/// creates a new [ArrowArray] from two pointers. Used to import from the C Data Interface.
/// # Safety
/// See safety of [ArrowArray]
/// # Error
/// Errors if any of the pointers is null
creates a new [ArrowArray] from two pointers. Used to import from the C Data Interface.
creates a new [ ArrowArray ] from two pointers . Used to import from the C Data Interface .
pub unsafe fn try_from_raw(
        array: *const FFI_ArrowArray,
        schema: *const FFI_ArrowSchema,
    ) -> Result<Self> {
        if array.is_null() || schema.is_null() {
            return Err(ArrowError::MemoryError(
                "At least one of the pointers passed to `try_from_raw` is null"
                    .to_string(),
            ));
        };
        Ok(Self {
            array: Arc::from_raw(array as *mut FFI_ArrowArray),
            schema: Arc::from_raw(schema as *mut FFI_ArrowSchema),
        })
    }
pub unsafe fn try_from_raw ( array : * const FFI_ArrowArray , schema : * const FFI_ArrowSchema , ) -> Result < Self > { if array . is_null ( ) || schema . is_null ( ) { return Err ( ArrowError :: MemoryError ( " " . to_string ( ) , ) ) ; } ; Ok ( Self { array : Arc :: from_raw ( array as * mut FFI_ArrowArray ) , schema : Arc :: from_raw ( schema as * mut FFI_ArrowSchema ) , } ) }
creates a new [ArrowArray] from two pointers.
creates a new [ ArrowArray ] from two pointers .
array
*const FFI_ArrowArray
schema
*const FFI_ArrowSchema
array
*const FFI_ArrowArray
schema
*const FFI_ArrowSchema
safety
See safety of [ArrowArray]
See safety of [ ArrowArray ]
error
Errors if any of the pointers is null
Errors if any of the pointers is null