Struct rustc_hir::definitions::DefPath [−][src]
pub struct DefPath {
pub data: Vec<DisambiguatedDefPathData>,
pub krate: CrateNum,
}Fields
data: Vec<DisambiguatedDefPathData>Expand description
The path leading from the crate root to the item.
krate: CrateNumExpand description
The crate root this path is relative to.
Implementations
impl DefPath[src]
impl DefPath[src]pub fn make<FN>(krate: CrateNum, start_index: DefIndex, get_key: FN) -> DefPath where
FN: FnMut(DefIndex) -> DefKey, [src]
FN: FnMut(DefIndex) -> DefKey,
pub fn to_string_no_crate_verbose(&self) -> String[src]
pub fn to_string_no_crate_verbose(&self) -> String[src]Returns a string representation of the DefPath without
the crate-prefix. This method is useful if you don’t have
a TyCtxt available.
pub fn to_filename_friendly_no_crate(&self) -> String[src]
pub fn to_filename_friendly_no_crate(&self) -> String[src]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 Send for DefPath
impl Sync for DefPath
impl Unpin for DefPath
impl UnwindSafe for DefPath
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more