cranpose_core/slot_storage.rs
1//! Slot storage helper types used by [`crate::SlotTable`].
2//!
3//! The slot table is the single storage implementation in this crate. These
4//! helpers keep the call sites readable without reintroducing an abstraction
5//! layer around that single concrete type.
6
7use crate::AnchorId;
8
9/// Opaque handle to a group in the slot storage.
10#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
11pub struct GroupId(pub(crate) usize);
12
13/// Result of starting a group.
14pub struct StartGroup<G> {
15 pub group: G,
16 pub anchor: AnchorId,
17 /// True if this group was restored from a gap (unstable children).
18 pub restored_from_gap: bool,
19}