[−][src]Struct rustc_query_system::dep_graph::SerializedDepGraph

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>,
}

Data for use when recompiling the current crate.

Fields

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.

Implementations

impl<K: DepKind> SerializedDepGraph<K>[src]

pub fn edge_targets_from(
    &self,
    source: SerializedDepNodeIndex
) -> &[SerializedDepNodeIndex]
[src]

Trait Implementations

impl<K: Debug + DepKind> Debug for SerializedDepGraph<K>[src]

impl<K: DepKind, __D: Decoder> Decodable<__D> for SerializedDepGraph<K> where
    K: Decodable<__D>, 
[src]

impl<K: DepKind> Default for SerializedDepGraph<K>[src]

impl<K: DepKind, __E: Encoder> Encodable<__E> for SerializedDepGraph<K> where
    K: Encodable<__E>, 
[src]

Auto Trait Implementations

impl<K> RefUnwindSafe for SerializedDepGraph<K> where
    K: RefUnwindSafe, 

impl<K> Send for SerializedDepGraph<K> where
    K: Send, 

impl<K> Sync for SerializedDepGraph<K> where
    K: Sync, 

impl<K> Unpin for SerializedDepGraph<K> where
    K: Unpin, 

impl<K> UnwindSafe for SerializedDepGraph<K> where
    K: UnwindSafe, 

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.