Struct rustc::hir::map::definitions::DefPathTable
[−]
[src]
pub struct DefPathTable { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (
rustc_private
)The DefPathTable maps DefIndexes to DefKeys and vice versa. Internally the DefPathTable holds a tree of DefKeys, where each DefKey stores the DefIndex of its parent. There is one DefPathTable for each crate.
Methods
impl DefPathTable
[src]
fn def_key(&self, index: DefIndex) -> DefKey
🔬 This is a nightly-only experimental API. (
rustc_private
)fn def_index_for_def_key(&self, key: &DefKey) -> Option<DefIndex>
🔬 This is a nightly-only experimental API. (
rustc_private
)fn contains_key(&self, key: &DefKey) -> bool
🔬 This is a nightly-only experimental API. (
rustc_private
)fn retrace_path(&self,
path_data: &[DisambiguatedDefPathData])
-> Option<DefIndex>
path_data: &[DisambiguatedDefPathData])
-> Option<DefIndex>
🔬 This is a nightly-only experimental API. (
rustc_private
)Trait Implementations
impl Clone for DefPathTable
[src]
fn clone(&self) -> DefPathTable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Encodable for DefPathTable
[src]
fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for DefPathTable
[src]
fn decode<D: Decoder>(d: &mut D) -> Result<DefPathTable, D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io