Skip to main content

PolarsHandler

Trait PolarsHandler 

Source
pub trait PolarsHandler:
    Literal
    + Send
    + Sync {
    type ChunkedArrayType: PolarsNumericType<Native = Self> + 'static;

    // Required methods
    fn polars_dtype() -> DataType;
    fn from_named_vec(name: &str, vec: &[Self]) -> Column
       where Self: Sized;
}
Expand description

Handle polars dtypes and conversions.

Required Associated Types§

Source

type ChunkedArrayType: PolarsNumericType<Native = Self> + 'static

Required Methods§

Source

fn polars_dtype() -> DataType

Source

fn from_named_vec(name: &str, vec: &[Self]) -> Column
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PolarsHandler for f32

Source§

impl PolarsHandler for f64

Source§

impl PolarsHandler for i8

Source§

impl PolarsHandler for i16

Source§

impl PolarsHandler for i32

Source§

impl PolarsHandler for i64

Source§

impl PolarsHandler for u8

Source§

impl PolarsHandler for u16

Source§

impl PolarsHandler for u32

Source§

impl PolarsHandler for u64

Implementors§