Skip to main content

PrimitiveArrayExt

Trait PrimitiveArrayExt 

Source
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§

Source

fn ptype(&self) -> PType

Source

fn nullability(&self) -> Nullability

Source

fn validity_child(&self) -> Option<&ArrayRef>

Source

fn validity(&self) -> Validity

Source

fn buffer_handle(&self) -> &BufferHandle

Source

fn reinterpret_cast(&self, ptype: PType) -> PrimitiveArray

Source

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".

Implementors§