1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! Dense typed identities into one graph's collections.
//!
//! One identity shape, branded three ways: a node position can never be read as
//! a reference or an edge position, and the value semantics, serialization, and
//! `index()` form cannot drift between them. Each is a transparent `u32` with no
//! public constructor, so a caller reads an identity out of a graph and indexes
//! back into the same graph but cannot manufacture one that names nothing.
use PhantomData;
use Serialize;
/// One dense `u32` position whose marker fixes the collection it addresses.
/// Marker distinguishing node identities from the other identity kinds.
;
/// Marker distinguishing reference identities from the other identity kinds.
;
/// Marker distinguishing edge identities from the other identity kinds.
;
/// A node's dense identity within one [`crate::CodeGraph`].
pub type GraphNodeId = ;
/// A reference record's dense identity within one [`crate::CodeGraph`].
pub type GraphReferenceId = ;
/// An edge's dense identity within one [`crate::CodeGraph`].
pub type GraphEdgeId = ;
/// The slice position one stored identity names.
///
/// Every identity this crate stores is a `u32`, and every slice it reads is
/// addressed by `usize`. On a target where `usize` is narrower, the saturating
/// answer selects no element, which each caller already treats as absence.
pub
/// The stored identity one slice position is recorded as.
///
/// The saturating answer names no record, and every caller reads it as absence:
/// a diagnostic payload prints the ceiling value, and a lookup made with it
/// selects nothing. Minting paths never reach the saturation, because
/// [`crate::GraphLimits`] proves the configured and fixed-width ceilings first;
/// a position taken from a supplied collection, such as a snapshot dependency
/// edge index, is bounded by no ceiling and may reach it.
pub