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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".