pub trait PrimitiveArrayItemTypewhere
for<'a> Self: Sized + Default + PartialOrd + ZeroHeapSize + Scalar<ScalarRefType<'a> = Self> + ScalarRef<'a, ScalarType = Self>,{
const DATA_TYPE: DataType;
// Required methods
fn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl;
fn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>;
fn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>;
fn array_type() -> ArrayType;
fn to_protobuf<T: Write>(self, output: &mut T) -> ArrayResult<usize>;
fn from_protobuf(cur: &mut Cursor<&[u8]>) -> ArrayResult<Self>;
}
Expand description
Physical type of array items which have fixed size.
Required Associated Constants§
Required Methods§
sourcefn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl
fn erase_array_type(arr: PrimitiveArray<Self>) -> ArrayImpl
A helper to convert a primitive array to ArrayImpl
.
sourcefn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>
fn try_into_array(arr: ArrayImpl) -> Option<PrimitiveArray<Self>>
A helper to convert ArrayImpl
to self.
sourcefn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>
fn try_into_array_ref(arr: &ArrayImpl) -> Option<&PrimitiveArray<Self>>
A helper to convert ArrayImpl
to self.
sourcefn array_type() -> ArrayType
fn array_type() -> ArrayType
Returns array type of the primitive array
fn to_protobuf<T: Write>(self, output: &mut T) -> ArrayResult<usize>
fn from_protobuf(cur: &mut Cursor<&[u8]>) -> ArrayResult<Self>
Object Safety§
This trait is not object safe.