Skip to main content

Columnar

Trait Columnar 

Source
pub trait Columnar: Sized {
    // Required method
    fn columnar_from_refs(items: &[&Self]) -> PolarsResult<DataFrame>;

    // Provided method
    fn columnar_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame> { ... }
}
Expand description

Columnar batch trait implemented by the derive macro.

Required Methods§

Source

fn columnar_from_refs(items: &[&Self]) -> PolarsResult<DataFrame>

§Errors

Returns an error if DataFrame construction fails.

Provided Methods§

Source

fn columnar_to_dataframe(items: &[Self]) -> PolarsResult<DataFrame>

§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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Columnar for ()

Implementors§