Struct rustc::dep_graph::serialized::SerializedDepGraph [−][src]
pub struct SerializedDepGraph {
pub nodes: IndexVec<SerializedDepNodeIndex, DepNode>,
pub fingerprints: IndexVec<SerializedDepNodeIndex, Fingerprint>,
pub edge_list_indices: IndexVec<SerializedDepNodeIndex, (u32, u32)>,
pub edge_list_data: Vec<SerializedDepNodeIndex>,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Data for use when recompiling the current crate.
Fields
nodes: IndexVec<SerializedDepNodeIndex, DepNode>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
The set of all DepNodes in the graph
fingerprints: IndexVec<SerializedDepNodeIndex, Fingerprint>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
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)>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
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>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
A flattened list of all edge targets in the graph. Edge sources are implicit in edge_list_indices.
Methods
impl SerializedDepGraph[src]
impl SerializedDepGraphpub fn new() -> SerializedDepGraph[src]
pub fn new() -> SerializedDepGraph🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn edge_targets_from(
&self,
source: SerializedDepNodeIndex
) -> &[SerializedDepNodeIndex][src]
pub fn edge_targets_from(
&self,
source: SerializedDepNodeIndex
) -> &[SerializedDepNodeIndex]🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Debug for SerializedDepGraph[src]
impl Debug for SerializedDepGraphfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Encodable for SerializedDepGraph[src]
impl Encodable for SerializedDepGraphfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for SerializedDepGraph[src]
impl Decodable for SerializedDepGraphAuto Trait Implementations
impl Send for SerializedDepGraph
impl Send for SerializedDepGraphimpl Sync for SerializedDepGraph
impl Sync for SerializedDepGraph