pub trait ColType: Sized {
type PolarsType;
type Array;
type Builder;
// Required methods
fn column_builder(name: &str, cap: usize) -> Self::Builder;
fn append_to_column(self, b: &mut Self::Builder);
fn cast_series<'a>(s: &'a Series) -> PolarsResult<&'a Self::Array>;
fn read_from_column(
name: &'static str,
a: &Self::Array,
pos: usize
) -> Result<Self, RowError>;
}
Expand description
Trait for column types.
Required Associated Types§
Required Methods§
sourcefn column_builder(name: &str, cap: usize) -> Self::Builder
fn column_builder(name: &str, cap: usize) -> Self::Builder
Create a new builder.
sourcefn append_to_column(self, b: &mut Self::Builder)
fn append_to_column(self, b: &mut Self::Builder)
Append this item to a builder.
sourcefn cast_series<'a>(s: &'a Series) -> PolarsResult<&'a Self::Array>
fn cast_series<'a>(s: &'a Series) -> PolarsResult<&'a Self::Array>
Cast a series to the appropriate chunked type.
Object Safety§
This trait is not object safe.