pub trait PrimitiveArrayExt: TypedArrayRef<Primitive> {
// Provided methods
fn ptype(&self) -> PType { ... }
fn nullability(&self) -> Nullability { ... }
fn validity_child(&self) -> Option<&ArrayRef> { ... }
fn validity(&self) -> Validity { ... }
fn validity_mask(&self) -> Mask { ... }
fn buffer_handle(&self) -> &BufferHandle { ... }
fn reinterpret_cast(&self, ptype: PType) -> PrimitiveArray { ... }
fn narrow(&self) -> VortexResult<PrimitiveArray> { ... }
}Provided Methods§
fn ptype(&self) -> PType
fn nullability(&self) -> Nullability
fn validity_child(&self) -> Option<&ArrayRef>
fn validity(&self) -> Validity
fn validity_mask(&self) -> Mask
fn buffer_handle(&self) -> &BufferHandle
fn reinterpret_cast(&self, ptype: PType) -> PrimitiveArray
Sourcefn narrow(&self) -> VortexResult<PrimitiveArray>
fn narrow(&self) -> VortexResult<PrimitiveArray>
Narrow the array to the smallest possible integer type that can represent all values.