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 buffer_handle(&self) -> &BufferHandle { ... }
fn reinterpret_cast(&self, ptype: PType) -> PrimitiveArray { ... }
fn narrow(&self, ctx: &mut ExecutionCtx) -> VortexResult<PrimitiveArray> { ... }
}Provided Methods§
fn ptype(&self) -> PType
fn nullability(&self) -> Nullability
fn validity_child(&self) -> Option<&ArrayRef>
fn validity(&self) -> Validity
fn buffer_handle(&self) -> &BufferHandle
fn reinterpret_cast(&self, ptype: PType) -> PrimitiveArray
Sourcefn narrow(&self, ctx: &mut ExecutionCtx) -> VortexResult<PrimitiveArray>
fn narrow(&self, ctx: &mut ExecutionCtx) -> VortexResult<PrimitiveArray>
Narrow the array to the smallest possible integer type that can represent all values.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".