Trait vortex_array::compute::SliceFn

source ·
pub trait SliceFn<Array> {
    // Required method
    fn slice(
        &self,
        array: &Array,
        start: usize,
        stop: usize,
    ) -> VortexResult<ArrayData>;
}
Expand description

Limit array to start…stop range

Required Methods§

source

fn slice( &self, array: &Array, start: usize, stop: usize, ) -> VortexResult<ArrayData>

Return a zero-copy slice of an array, between start (inclusive) and end (exclusive). If start >= stop, returns an empty array of the same type as self. Assumes that start or stop are out of bounds, may panic otherwise.

Implementors§