#[non_exhaustive]pub struct BarewordFact {
pub name: String,
pub role: BarewordRole,
pub package_context: Option<String>,
pub range: SourceLocation,
pub source_item: HirId,
pub scope_id: Option<HirScopeId>,
pub anchor_id: AnchorId,
pub provenance: CompileProvenance,
pub confidence: CompileConfidence,
}Expand description
One source-backed syntactic bareword classification.
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.name: StringBareword text as parsed.
role: BarewordRoleSyntactic role observed by HIR lowering.
package_context: Option<String>Package context active at the bareword.
range: SourceLocationPrecise source range for the bareword node.
source_item: HirIdHIR item that exposed the bareword expression.
scope_id: Option<HirScopeId>Scope owning the bareword expression.
anchor_id: AnchorIdSource anchor for this bareword fact.
provenance: CompileProvenanceProvenance for the lowered bareword fact.
confidence: CompileConfidenceConfidence for the lowered bareword fact.
Trait Implementations§
Source§impl Clone for BarewordFact
impl Clone for BarewordFact
Source§fn clone(&self) -> BarewordFact
fn clone(&self) -> BarewordFact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BarewordFact
impl Debug for BarewordFact
impl Eq for BarewordFact
Source§impl PartialEq for BarewordFact
impl PartialEq for BarewordFact
Source§fn eq(&self, other: &BarewordFact) -> bool
fn eq(&self, other: &BarewordFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BarewordFact
Auto Trait Implementations§
impl Freeze for BarewordFact
impl RefUnwindSafe for BarewordFact
impl Send for BarewordFact
impl Sync for BarewordFact
impl Unpin for BarewordFact
impl UnsafeUnpin for BarewordFact
impl UnwindSafe for BarewordFact
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