pub struct ArrowSchema { /* private fields */ }Expand description
A handle to an Arrow schema.
This is a wrapper around the opaque chdb_arrow_schema pointer type.
Arrow schemas define the structure of Arrow data.
§Safety
The underlying pointer must be valid and must remain valid for the lifetime of this handle. The handle does not take ownership of the Arrow schema.
Implementations§
Source§impl ArrowSchema
impl ArrowSchema
Sourcepub unsafe fn from_raw(schema: *mut chdb_arrow_schema_) -> Self
pub unsafe fn from_raw(schema: *mut chdb_arrow_schema_) -> Self
Create an ArrowSchema from a raw chdb_arrow_schema pointer.
§Safety
The pointer must be valid and point to a valid Arrow schema handle. The caller is responsible for ensuring the schema remains valid for the lifetime of this handle.
§Arguments
schema- A raw pointer to achdb_arrow_schema
§Examples
use chdb_rust::arrow_stream::ArrowSchema;
// Assuming you have a valid Arrow schema pointer from Arrow C++
// let schema_ptr: *mut chdb_arrow_schema_ = ...;
// let arrow_schema = unsafe { ArrowSchema::from_raw(schema_ptr) };Trait Implementations§
Source§impl Clone for ArrowSchema
impl Clone for ArrowSchema
Source§fn clone(&self) -> ArrowSchema
fn clone(&self) -> ArrowSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArrowSchema
impl Debug for ArrowSchema
impl Copy for ArrowSchema
impl Send for ArrowSchema
Auto Trait Implementations§
impl Freeze for ArrowSchema
impl RefUnwindSafe for ArrowSchema
impl !Sync for ArrowSchema
impl Unpin for ArrowSchema
impl UnsafeUnpin for ArrowSchema
impl UnwindSafe for ArrowSchema
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