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]

Trait Implementations

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

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a, K: DepKind + Decodable<Decoder<'a>>> Decodable<Decoder<'a>> for SerializedDepGraph<K>[src]

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

fn default() -> Self[src]

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

Auto Trait Implementations

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

impl<K> Send for SerializedDepGraph<K>

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.