Skip to main content

FromBinaryValue

Trait FromBinaryValue 

Source
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§

Source

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Extracts a value from a StreamRow at the given column index.

Source

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.

Implementations on Foreign Types§

Source§

impl FromBinaryValue for bool

Source§

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Source§

fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>

Source§

impl FromBinaryValue for f32

Source§

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Source§

fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>

Source§

impl FromBinaryValue for f64

Source§

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Source§

fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>

Source§

impl FromBinaryValue for i16

Source§

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Source§

fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>

Source§

impl FromBinaryValue for i32

Source§

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Source§

fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>

Source§

impl FromBinaryValue for i64

Source§

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Source§

fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>

Source§

impl FromBinaryValue for String

Source§

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Source§

fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>

Source§

impl FromBinaryValue for Vec<u8>

Source§

fn from_stream_row(row: &StreamRow, idx: usize) -> Option<Self>

Source§

fn from_batch_row(row: &BatchRow, idx: usize) -> Option<Self>

Implementors§