pub trait ChunkOps: ChunkLen {
fn rechunk(&self) -> Self;
fn slice(&self, offset: i64, length: usize) -> Self;
fn limit(&self, num_elements: usize) -> Self { ... }
fn head(&self, length: Option<usize>) -> Self { ... }
fn tail(&self, length: Option<usize>) -> Self { ... }
}
Required methods
Slice the array. The chunks are reallocated the underlying data slices are zero copy.
When offset is negative it will be counted from the end of the array. This method will never error, and will slice the best match when offset, or length is out of bounds