#[non_exhaustive]pub struct HirItem {
pub id: HirId,
pub kind: HirKind,
pub range: SourceLocation,
pub anchor: AstAnchor,
pub recovery_confidence: RecoveryConfidence,
pub package_context: Option<String>,
pub scope_context: Option<HirScopeId>,
}Expand description
One lowered HIR item with common metadata required by compiler layers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: HirIdStable item id for this file.
kind: HirKindLowered language construct.
range: SourceLocationSource range for the construct.
anchor: AstAnchorParser AST anchor for this item.
recovery_confidence: RecoveryConfidenceRecovery quality inherited from parser recovery.
package_context: Option<String>Package context known at lowering time.
scope_context: Option<HirScopeId>Scope context known at lowering time.
Trait Implementations§
impl Eq for HirItem
impl StructuralPartialEq for HirItem
Auto Trait Implementations§
impl Freeze for HirItem
impl RefUnwindSafe for HirItem
impl Send for HirItem
impl Sync for HirItem
impl Unpin for HirItem
impl UnsafeUnpin for HirItem
impl UnwindSafe for HirItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more