#[non_exhaustive]pub struct CompileEffect {Show 15 fields
pub ordinal: u32,
pub kind: CompileEffectKind,
pub source_kind: CompileEffectSourceKind,
pub fact_kind: CompileEffectFactKind,
pub fact_name: Option<String>,
pub range: SourceLocation,
pub source_item: Option<HirId>,
pub scope_id: Option<HirScopeId>,
pub package_context: Option<String>,
pub fact_anchor_id: Option<AnchorId>,
pub dynamic_reason: Option<String>,
pub source_hash: Option<String>,
pub model_version: u32,
pub provenance: CompileProvenance,
pub confidence: CompileConfidence,
}Expand description
One Rust-modeled Perl compile-time effect.
Effects connect source constructs to compiler state mutations and the semantic fact categories emitted from those mutations. They are proof data for compiler-substrate work and do not change provider behavior.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ordinal: u32Stable ordinal after source-order sorting.
kind: CompileEffectKindEffect category.
source_kind: CompileEffectSourceKindSource construct category.
fact_kind: CompileEffectFactKindSemantic fact category emitted by this effect.
fact_name: Option<String>Human-readable fact name.
range: SourceLocationSource range for the effect.
source_item: Option<HirId>HIR item that produced this effect, when available.
scope_id: Option<HirScopeId>Scope containing this effect, when known.
package_context: Option<String>Package context active at the effect, when known.
fact_anchor_id: Option<AnchorId>Source anchor of the emitted fact, when available.
dynamic_reason: Option<String>Dynamic-boundary reason, when this effect records unsupported behavior.
source_hash: Option<String>Caller-supplied source hash used for freshness, when available.
model_version: u32Compile-effect model version.
provenance: CompileProvenanceHow this effect was produced.
confidence: CompileConfidenceConfidence in this effect.
Trait Implementations§
Source§impl Clone for CompileEffect
impl Clone for CompileEffect
Source§fn clone(&self) -> CompileEffect
fn clone(&self) -> CompileEffect
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompileEffect
impl Debug for CompileEffect
Source§impl PartialEq for CompileEffect
impl PartialEq for CompileEffect
Source§fn eq(&self, other: &CompileEffect) -> bool
fn eq(&self, other: &CompileEffect) -> bool
self and other values to be equal, and is used by ==.