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: CrateNum
The 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 DefPath
impl UnwindSafe for DefPath
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: 32 bytes