pub trait SliceFn<A> {
// Required method
fn slice(&self, array: &A, start: usize, stop: usize) -> VortexResult<Array>;
}Expand description
Limit array to start…stop range
Required Methods§
Sourcefn slice(&self, array: &A, start: usize, stop: usize) -> VortexResult<Array>
fn slice(&self, array: &A, start: usize, stop: usize) -> VortexResult<Array>
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.