/// Create a new `Metadata` for an element with the given index.
///
/// # Panics
///
/// Panics if the index is above the maximum amount of values a `PartitionVec<T>` can store
/// with the compact representation.
Create a new `Metadata` for an element with the given index.
Create a new ` Metadata ` for an element with the given index .
pub(crate) fn new(index: usize) -> Self {
        if index > MAX {
            panic!("A PartitionVec can only hold {} values.", MAX)
        }
        Self {
            parent: Cell::new(index << RANK_BITS),
            link: Cell::new(index << RANK_BITS),
        }
    }
pub ( crate ) fn new ( index : usize ) -> Self { if index > MAX { panic ! ( " " MAX ) } Self { parent : Cell :: new ( index << RANK_BITS ) , link : Cell :: new ( index << RANK_BITS ) , } }
Create a new `Metadata` for an element with the given index.
Create a new ` Metadata ` for an element with the given index .
index
usize
panics
Panics if the index is above the maximum amount of values a `PartitionVec` can store
with the compact representation.
Panics if the index is above the maximum amount of values a ` PartitionVec ` can store with the compact representation .