Struct rustc_query_system::dep_graph::SerializedDepGraph [−][src]
pub struct SerializedDepGraph<K: DepKind> { pub nodes: IndexVec<SerializedDepNodeIndex, DepNode<K>>, pub fingerprints: IndexVec<SerializedDepNodeIndex, Fingerprint>, pub edge_list_indices: IndexVec<SerializedDepNodeIndex, (u32, u32)>, pub edge_list_data: Vec<SerializedDepNodeIndex>, }
Expand description
Data for use when recompiling the current crate.
Fields
nodes: IndexVec<SerializedDepNodeIndex, DepNode<K>>Expand description
The set of all DepNodes in the graph
fingerprints: IndexVec<SerializedDepNodeIndex, Fingerprint>Expand description
The set of all Fingerprints in the graph. Each Fingerprint corresponds to the DepNode at the same index in the nodes vector.
edge_list_indices: IndexVec<SerializedDepNodeIndex, (u32, u32)>Expand description
For each DepNode, stores the list of edges originating from that DepNode. Encoded as a [start, end) pair indexing into edge_list_data, which holds the actual DepNodeIndices of the target nodes.
edge_list_data: Vec<SerializedDepNodeIndex>Expand description
A flattened list of all edge targets in the graph. Edge sources are implicit in edge_list_indices.
Implementations
impl<K: DepKind> SerializedDepGraph<K>[src]
impl<K: DepKind> SerializedDepGraph<K>[src]pub fn edge_targets_from(
&self,
source: SerializedDepNodeIndex
) -> &[SerializedDepNodeIndex][src]
&self,
source: SerializedDepNodeIndex
) -> &[SerializedDepNodeIndex]
Trait Implementations
impl<K: Debug + DepKind> Debug for SerializedDepGraph<K>[src]
impl<K: Debug + DepKind> Debug for SerializedDepGraph<K>[src]Auto Trait Implementations
impl<K> RefUnwindSafe for SerializedDepGraph<K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
impl<K> Send for SerializedDepGraph<K>
impl<K> Sync for SerializedDepGraph<K> where
K: Sync,
K: Sync,
impl<K> Unpin for SerializedDepGraph<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for SerializedDepGraph<K> where
K: UnwindSafe,
K: UnwindSafe,