Uniquely identifies a node in the HIR of the current crate. It is
composed of the
owner, which is the
LocalDefId of the directly enclosing
hir::ImplItem (i.e., the closest "item-like"),
local_id which is unique within the given owner.
This two-level structure makes for more stable values: One can move an item
around within the source code, or add or remove stuff before it, without
local_id part of the
HirId changing, which is a very useful property in
incremental compilation where we have to persist things through changes to
the code base.
fn hash_slice<H>(data: &[Self], state: &mut H) where1.3.0[src]
impl<HirCtx: HashStableContext> HashStable<HirCtx> for HirId[src]
impl PartialOrd<HirId> for HirId[src]
fn partial_cmp(&self, other: &HirId) -> Option<Ordering>[src]
impl StructuralEq for HirId[src]
impl StructuralPartialEq for HirId[src]
impl<HirCtx: HashStableContext> ToStableHashKey<HirCtx> for HirId[src]
Auto Trait Implementations
impl RefUnwindSafe for HirId
impl UnwindSafe for HirId
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.