Trait MergeIndex
pub trait MergeIndex:
PartialEq
+ Eq
+ Copy {
// Required method
fn index(&self) -> Option<usize>;
}Expand description
An index for the merge_n function.
This trait allows the indices argument for merge_n to be stored using a more
compact representation than usize when the input arrays are small.
If the number of input arrays is less than 256 for instance, the indices can be stored as u8.
Implementation must ensure that all values which return None from MergeIndex::index are
considered equal by the PartialEq and Eq implementations.
Required Methods§
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.