pub fn slice(array: &Array, start: usize, stop: usize) -> VortexResult<Array>
Expand description
Return a zero-copy slice of an array, between start
(inclusive) and end
(exclusive).
§Panics
Slicing will panic if you attempt to slice a range that exceeds the bounds of the
underlying array.
§Errors
Slicing returns an error if the underlying codec’s slice implementation
returns an error.