pub fn primitive_to_same_primitive<T>(
from: &PrimitiveArray<T>,
to_type: &DataType
) -> PrimitiveArray<T> where
T: NativeType,
Expand description
Cast PrimitiveArray
to a PrimitiveArray
of the same physical type.
This is O(1).
pub fn primitive_to_same_primitive<T>(
from: &PrimitiveArray<T>,
to_type: &DataType
) -> PrimitiveArray<T> where
T: NativeType,
Cast PrimitiveArray
to a PrimitiveArray
of the same physical type.
This is O(1).