polars_arrow::scalar

Trait Scalar

Source
pub trait Scalar:
    Debug
    + Send
    + Sync
    + DynClone
    + 'static {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn is_valid(&self) -> bool;
    fn dtype(&self) -> &ArrowDataType;
}
Expand description

Trait object declaring an optional value with a ArrowDataType. This strait is often used in APIs that accept multiple scalar types.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

convert itself to

Source

fn is_valid(&self) -> bool

whether it is valid

Source

fn dtype(&self) -> &ArrowDataType

the logical type.

Trait Implementations§

Source§

impl PartialEq<dyn Scalar> for Arc<dyn Scalar + '_>

Source§

fn eq(&self, that: &dyn Scalar) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<dyn Scalar> for Box<dyn Scalar + '_>

Source§

fn eq(&self, that: &dyn Scalar) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for dyn Scalar + '_

Source§

fn eq(&self, that: &dyn Scalar) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§