Struct rustc_hir::definitions::DefPath [−][src]
pub struct DefPath {
pub data: Vec<DisambiguatedDefPathData>,
pub krate: CrateNum,
}Fields
data: Vec<DisambiguatedDefPathData>The path leading from the crate root to the item.
krate: CrateNumThe crate root this path is relative to.
Implementations
pub fn make<FN>(krate: CrateNum, start_index: DefIndex, get_key: FN) -> DefPath where
FN: FnMut(DefIndex) -> DefKey, Returns a string representation of the DefPath without
the crate-prefix. This method is useful if you don’t have
a TyCtxt available.
Returns a filename-friendly string of the DefPath, without
the crate-prefix. This method is useful if you don’t have
a TyCtxt available.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DefPathimpl UnwindSafe for DefPathBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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: 32 bytes