Trait fera_array::Split

source ·
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

Creates a new Split for a NestedArray with n elements.

Split index in two indices (main array, nested array).

Returns the maximum index that can be produced to be used in a nested arrays.

Implementors