proof_of_sql::base::database

Trait ToArrow

source
pub trait ToArrow {
    // Required methods
    fn to_type(&self) -> DataType;
    fn to_array(self) -> Arc<dyn Array>;
}
Expand description

Extension trait for Vec to convert it to an Arrow array

Required Methods§

source

fn to_type(&self) -> DataType

Returns the equivalent Arrow type

source

fn to_array(self) -> Arc<dyn Array>

Converts the Vec to an Arrow ArrayRef.

Implementations on Foreign Types§

source§

impl ToArrow for Vec<&str>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<bool>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<i16>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<i32>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<i64>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<i128>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<String>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

source§

impl ToArrow for Vec<Time>

source§

fn to_type(&self) -> DataType

source§

fn to_array(self) -> Arc<dyn Array>

Implementors§