Trait ScalarType

Source
pub trait ScalarType {
    // Required method
    fn dtype() -> DType;
}
Expand description

A trait for types that can be used as scalar values.

This trait is implemented by native Rust types that can be converted to and from Vortex scalar values.

Required Methods§

Source

fn dtype() -> DType

Returns the Vortex data type for this scalar type.

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.

Implementations on Foreign Types§

Source§

impl ScalarType for bool

Source§

impl ScalarType for f32

Source§

impl ScalarType for f64

Source§

impl ScalarType for i8

Source§

impl ScalarType for i16

Source§

impl ScalarType for i32

Source§

impl ScalarType for i64

Source§

impl ScalarType for u8

Source§

impl ScalarType for u16

Source§

impl ScalarType for u32

Source§

impl ScalarType for u64

Source§

impl ScalarType for usize

Source§

impl ScalarType for String

Source§

impl ScalarType for Vec<f32>

Source§

impl ScalarType for Vec<f64>

Source§

impl ScalarType for Vec<i8>

Source§

impl ScalarType for Vec<i16>

Source§

impl ScalarType for Vec<i32>

Source§

impl ScalarType for Vec<i64>

Source§

impl ScalarType for Vec<u16>

Source§

impl ScalarType for Vec<u32>

Source§

impl ScalarType for Vec<u64>

Source§

impl ScalarType for Vec<usize>

Source§

impl ScalarType for Vec<String>

Source§

impl ScalarType for Vec<f16>

Source§

impl ScalarType for Vec<BufferString>

Source§

impl ScalarType for Vec<ByteBuffer>

Source§

impl ScalarType for f16

Source§

impl ScalarType for BufferString

Source§

impl ScalarType for ByteBuffer

Implementors§