SccData in rustc_data_structures::graph::scc - Rust (original) (raw)

struct SccData<S: Idx> {
    scc_details: IndexVec<S, SccDetails>,
    all_successors: Vec<S>,
}

Maps SCC indices to their metadata, including offsets into all_successors.

Contains the successors for all the Sccs, concatenated. The range of indices corresponding to a given SCC is found in itsscc_details.range.

Source§

Source

Number of SCCs,

Source

Returns the successors of the given SCC.

Source

Creates a new SCC with successors as its successors and returns the resulting index.

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: 48 bytes