pub trait FromBatch: Sized {
// Required methods
fn from_batch(batch: &RecordBatch, row: usize) -> Self;
fn from_batch_all(batch: &RecordBatch) -> Vec<Self>;
}Expand description
Deserialize rows from a RecordBatch. Auto-generated by #[derive(FromRecordBatch)].
Required Methods§
Sourcefn from_batch(batch: &RecordBatch, row: usize) -> Self
fn from_batch(batch: &RecordBatch, row: usize) -> Self
Single row.
Sourcefn from_batch_all(batch: &RecordBatch) -> Vec<Self>
fn from_batch_all(batch: &RecordBatch) -> Vec<Self>
All rows.
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.