pub trait FromBinaryValue: Sized {
// Required methods
fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>;
fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>;
}Expand description
Trait for extracting typed values from binary row data with automatic coercion.
Required Methods§
Sourcefn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>
fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>
Extracts a value from a StreamRow at the given column index.
Sourcefn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>
fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>
Extracts a value from a BatchRow at the given column index.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.