Trait arrow2::scalar::Scalar

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

Trait object declaring an optional value with a DataType. 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 data_type(&self) -> &DataType

the logical type.

Trait Implementations§

source§

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

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

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

Implementors§