Trait FilterKernel

Source
pub trait FilterKernel: VTable {
    // Required method
    fn filter(&self, array: &Self::Array, mask: &Mask) -> VortexResult<ArrayRef>;
}

Required Methods§

Source

fn filter(&self, array: &Self::Array, mask: &Mask) -> VortexResult<ArrayRef>

Filter an array by the provided predicate.

Note that the entry-point filter functions handles Mask::AllTrue and Mask::AllFalse, leaving only Mask::Values to be handled by this function.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§