polars::prelude

Trait PolarsObject

Source
pub trait PolarsObject:
    Any
    + Debug
    + Clone
    + Send
    + Sync
    + Default
    + Display
    + Hash
    + TotalHash
    + PartialEq
    + Eq
    + TotalEq {
    // Required method
    fn type_name() -> &'static str;
}
Expand description

Values need to implement this so that they can be stored into a Series and DataFrame

Required Methods§

Source

fn type_name() -> &'static str

This should be used as type information. Consider this a part of the type system.

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.

Implementors§