pub trait ScalarType<T: ArrowNativeType> {
    // Required method
    fn scalar(r: Option<T>) -> ScalarValue;
}
Expand description

Trait used to map a NativeType to a ScalarValue

Required Methods§

source

fn scalar(r: Option<T>) -> ScalarValue

returns a scalar from an optional T

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ScalarType<f32> for Float32Type

source§

impl ScalarType<i64> for TimestampMicrosecondType

source§

impl ScalarType<i64> for TimestampMillisecondType

source§

impl ScalarType<i64> for TimestampNanosecondType

source§

impl ScalarType<i64> for TimestampSecondType

Implementors§