Skip to main content

FromDataBatch

Trait FromDataBatch 

Source
pub trait FromDataBatch: Sized {
    // Required method
    fn from_batch(batch: DataBatch) -> Result<Vec<Self>>;
}
Expand description

Typed values that unwrap from their DataBatch variant.

Required Methods§

Source

fn from_batch(batch: DataBatch) -> Result<Vec<Self>>

Unwraps a typed batch into owned values.

§Errors

Returns an error if batch holds another variant.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§