Struct rustc_hir::definitions::DefPathTable [−][src]
pub struct DefPathTable {
index_to_key: IndexVec<DefIndex, DefKey>,
def_path_hashes: IndexVec<DefIndex, DefPathHash>,
def_path_hash_to_index: DefPathHashMap,
}
Expand description
The DefPathTable
maps DefIndex
es to DefKey
s and vice versa.
Internally the DefPathTable
holds a tree of DefKey
s, where each DefKey
stores the DefIndex
of its parent.
There is one DefPathTable
for each crate.
Fields
index_to_key: IndexVec<DefIndex, DefKey>
def_path_hashes: IndexVec<DefIndex, DefPathHash>
def_path_hash_to_index: DefPathHashMap
Implementations
pub fn enumerated_keys_and_path_hashes(
&self
) -> impl Iterator<Item = (DefIndex, &DefKey, &DefPathHash)> + ExactSizeIterator + '_
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DefPathTable
impl Send for DefPathTable
impl Sync for DefPathTable
impl Unpin for DefPathTable
impl UnwindSafe for DefPathTable
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
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: 64 bytes