pub struct SerializedDepGraph<K: DepKind> {
    nodes: IndexVec<SerializedDepNodeIndex, DepNode<K>>,
    fingerprints: IndexVec<SerializedDepNodeIndex, Fingerprint>,
    edge_list_indices: IndexVec<SerializedDepNodeIndex, (u32, u32)>,
    edge_list_data: Vec<SerializedDepNodeIndex>,
    index: FxHashMap<DepNode<K>, SerializedDepNodeIndex>,
Expand description

Data for use when recompiling the current crate.


nodes: IndexVec<SerializedDepNodeIndex, DepNode<K>>

The set of all DepNodes in the graph

fingerprints: IndexVec<SerializedDepNodeIndex, Fingerprint>

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)>

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>

A flattened list of all edge targets in the graph. Edge sources are implicit in edge_list_indices.

index: FxHashMap<DepNode<K>, SerializedDepNodeIndex>

Reciprocal map to nodes.


Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.


Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 128 bytes