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§
Sourcefn from_batch(batch: &RecordBatch, row: usize) -> Self
fn from_batch(batch: &RecordBatch, row: usize) -> Self
Deserialize a single row from a RecordBatch.
Sourcefn from_batch_all(batch: &RecordBatch) -> Vec<Self>
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.