Skip to main content

PolarsObjectSafe

Trait PolarsObjectSafe 

Source
pub trait PolarsObjectSafe:
    Any
    + Debug
    + Send
    + Sync
    + Display {
    // Required methods
    fn type_name(&self) -> &'static str;
    fn as_any(&self) -> &dyn Any;
    fn to_boxed(&self) -> Box<dyn PolarsObjectSafe>;
    fn equal(&self, other: &dyn PolarsObjectSafe) -> bool;
}
Available on crate feature object only.
Expand description

Trimmed down object safe polars object

Required Methods§

Source

fn type_name(&self) -> &'static str

Source

fn as_any(&self) -> &dyn Any

Source

fn to_boxed(&self) -> Box<dyn PolarsObjectSafe>

Source

fn equal(&self, other: &dyn PolarsObjectSafe) -> bool

Trait Implementations§

Source§

impl PartialEq for &dyn PolarsObjectSafe

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§