qubit-collections 0.2.2

Custom collection types for specialized access and traversal patterns
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Private stable index into the record arena.

/// Identifies an arena slot used by the map's internal indexes.
#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub(crate) struct SlotId(
    /// Zero-based arena position; the slot may be reused after its value is
    /// removed.
    pub(crate) usize,
);