Skip to main content

FromBatch

Trait FromBatch 

Source
pub trait FromBatch: Sized {
    // Required methods
    fn from_batch(batch: &RecordBatch, row: usize) -> Self;
    fn from_batch_all(batch: &RecordBatch) -> Vec<Self>;
}
Expand description

Trait for types that can be deserialized from a RecordBatch.

Auto-generated by #[derive(FromRecordBatch)].

Required Methods§

Source

fn from_batch(batch: &RecordBatch, row: usize) -> Self

Deserialize a single row from a RecordBatch.

Source

fn from_batch_all(batch: &RecordBatch) -> Vec<Self>

Deserialize all rows from a RecordBatch.

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.

Implementors§