Trait TakeKernel

Source
pub trait TakeKernel: VTable {
    // Required method
    fn take(
        &self,
        array: &Self::Array,
        indices: &dyn Array,
    ) -> VortexResult<ArrayRef>;
}

Required Methods§

Source

fn take( &self, array: &Self::Array, indices: &dyn Array, ) -> VortexResult<ArrayRef>

Create a new array by taking the values from the array at the given indices.

§Panics

Using indices that are invalid for the given array will cause a panic.

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§