pub trait Columnar: Sized {
// Required method
fn columnar_from_refs(items: &[&Self]) -> Result<DataFrame, PolarsError>;
// Provided method
fn columnar_to_dataframe(items: &[Self]) -> Result<DataFrame, PolarsError> { ... }
}Expand description
Columnar batch trait implemented by the derive macro.
Required Methods§
Sourcefn columnar_from_refs(items: &[&Self]) -> Result<DataFrame, PolarsError>
fn columnar_from_refs(items: &[&Self]) -> Result<DataFrame, PolarsError>
§Errors
Returns an error if DataFrame construction fails.
Provided Methods§
Sourcefn columnar_to_dataframe(items: &[Self]) -> Result<DataFrame, PolarsError>
fn columnar_to_dataframe(items: &[Self]) -> Result<DataFrame, PolarsError>
§Errors
Returns an error if DataFrame construction fails.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".