Struct rustc_hir::definitions::DefKey [−][src]
pub struct DefKey {
pub parent: Option<DefIndex>,
pub disambiguated_data: DisambiguatedDefPathData,
}Expand description
A unique identifier that we can use to lookup a definition
precisely. It combines the index of the definition’s parent (if
any) with a DisambiguatedDefPathData.
Fields
parent: Option<DefIndex>Expand description
The parent path.
disambiguated_data: DisambiguatedDefPathDataExpand description
The identifier of this node.
Implementations
impl DefKey[src]
impl DefKey[src]pub(crate) fn compute_stable_hash(&self, parent: DefPathHash) -> DefPathHash[src]
Trait Implementations
impl Copy for DefKey[src]
impl StructuralPartialEq for DefKey[src]
Auto Trait Implementations
impl RefUnwindSafe for DefKey
impl Send for DefKey
impl Sync for DefKey
impl Unpin for DefKey
impl UnwindSafe for DefKey
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