pub trait Split {
// Required methods
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.