pub trait Split {
fn new(n: usize) -> Self;
fn split(&self, index: usize) -> (usize, usize);
fn max_nested(&self) -> usize;
}
Expand description
Describe how to split the indices for a NestedArray
.
Required Methods§
sourcefn split(&self, index: usize) -> (usize, usize)
fn split(&self, index: usize) -> (usize, usize)
Split index
in two indices (main array, nested array).
sourcefn max_nested(&self) -> usize
fn max_nested(&self) -> usize
Returns the maximum index that can be produced to be used in a nested arrays.