dora_arrow_convert/
lib.rs1use std::ops::{Deref, DerefMut};
2
3use arrow::array::Array;
4
5mod from_impls;
6mod into_impls;
7
8pub trait IntoArrow {
9 type A: Array;
10
11 fn into_arrow(self) -> Self::A;
12}
13
14#[derive(Debug)]
15pub struct ArrowData(pub arrow::array::ArrayRef);
16
17impl Deref for ArrowData {
18 type Target = arrow::array::ArrayRef;
19
20 fn deref(&self) -> &Self::Target {
21 &self.0
22 }
23}
24
25impl DerefMut for ArrowData {
26 fn deref_mut(&mut self) -> &mut Self::Target {
27 &mut self.0
28 }
29}