[−][src]Trait rustc_middle::middle::cstore::CrateStore
A store of Rust crates, through which their metadata can be accessed.
Note that this trait should probably not be expanding today. All new functionality should be driven through queries instead!
If you find a method on this trait named {name}_untracked it signifies
that it's not tracked for dependency information throughout compilation
(it'd break incremental compilation) and should only be called pre-HIR (e.g.
during resolve)
Required methods
fn as_any(&self) -> &dyn Any
fn def_key(&self, def: DefId) -> DefKey
fn def_kind(&self, def: DefId) -> DefKind
fn def_path(&self, def: DefId) -> DefPath
fn def_path_hash(&self, def: DefId) -> DefPathHash
fn all_def_path_hashes_and_def_ids(
&self,
cnum: CrateNum
) -> Vec<(DefPathHash, DefId)>
&self,
cnum: CrateNum
) -> Vec<(DefPathHash, DefId)>