Trait arrow2_convert::serialize::ArrowSerialize
source · pub trait ArrowSerialize: ArrowField {
type MutableArrayType: MutableArray;
// Required methods
fn new_array() -> Self::MutableArrayType;
fn arrow_serialize(
v: &<Self as ArrowField>::Type,
array: &mut Self::MutableArrayType
) -> Result<()>;
}
Expand description
Trait that is implemented by all types that are serializable to Arrow.
Implementations are provided for all built-in arrow types as well as Vec
Note that Veccrate::arrow_enable_vec_for_type
macro.
Required Associated Types§
sourcetype MutableArrayType: MutableArray
type MutableArrayType: MutableArray
The arrow2::array::MutableArray
that holds this value
Required Methods§
sourcefn new_array() -> Self::MutableArrayType
fn new_array() -> Self::MutableArrayType
Create a new mutable array
sourcefn arrow_serialize(
v: &<Self as ArrowField>::Type,
array: &mut Self::MutableArrayType
) -> Result<()>
fn arrow_serialize( v: &<Self as ArrowField>::Type, array: &mut Self::MutableArrayType ) -> Result<()>
Serialize this field to arrow