Trait SliceFn

Source
pub trait SliceFn<A> {
    // Required method
    fn slice(
        &self,
        array: A,
        start: usize,
        stop: usize,
    ) -> VortexResult<ArrayRef>;
}
Expand description

Limit array to start…stop range

Required Methods§

Source

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

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§