pub struct ArrowStream { /* private fields */ }Expand description
A handle to an Arrow stream.
This is a wrapper around the opaque chdb_arrow_stream pointer type.
Arrow streams are typically created from Arrow C++ or other Arrow implementations.
§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 stream.
Implementations§
Source§impl ArrowStream
impl ArrowStream
Sourcepub unsafe fn from_raw(stream: *mut chdb_arrow_stream_) -> Self
pub unsafe fn from_raw(stream: *mut chdb_arrow_stream_) -> Self
Create an ArrowStream from a raw chdb_arrow_stream pointer.
§Safety
The pointer must be valid and point to a valid Arrow stream handle. The caller is responsible for ensuring the stream remains valid for the lifetime of this handle.
§Arguments
stream- A raw pointer to achdb_arrow_stream
§Examples
use chdb_rust::arrow_stream::ArrowStream;
// Assuming you have a valid Arrow stream pointer from Arrow C++
// let stream_ptr: *mut chdb_arrow_stream_ = ...;
// let arrow_stream = unsafe { ArrowStream::from_raw(stream_ptr) };Trait Implementations§
Source§impl Clone for ArrowStream
impl Clone for ArrowStream
Source§fn clone(&self) -> ArrowStream
fn clone(&self) -> ArrowStream
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 ArrowStream
impl Debug for ArrowStream
impl Copy for ArrowStream
impl Send for ArrowStream
Auto Trait Implementations§
impl Freeze for ArrowStream
impl RefUnwindSafe for ArrowStream
impl !Sync for ArrowStream
impl Unpin for ArrowStream
impl UnsafeUnpin for ArrowStream
impl UnwindSafe for ArrowStream
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