Skip to main content

ZipReduce

Trait ZipReduce 

Source
pub trait ZipReduce: VTable {
    // Required method
    fn zip(
        array: ArrayView<'_, Self>,
        if_false: &ArrayRef,
        mask: &ArrayRef,
    ) -> VortexResult<Option<ArrayRef>>;
}
Expand description

Zip two arrays using a mask without reading buffers.

This trait is for zip implementations that can operate purely on array metadata and structure without needing to read or execute on the underlying buffers. Implementations should return None if the operation requires buffer access.

Dispatch supports either value branch. The adaptor normalizes the inputs so array is selected where mask is true, and if_false everywhere else.

Required Methods§

Source

fn zip( array: ArrayView<'_, Self>, if_false: &ArrayRef, mask: &ArrayRef, ) -> VortexResult<Option<ArrayRef>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§