#[non_exhaustive]pub struct CompilePhaseBlock {
pub phase: CompilePhase,
pub range: SourceLocation,
pub scope_id: Option<HirScopeId>,
pub package_context: Option<String>,
pub provenance: CompileProvenance,
pub confidence: CompileConfidence,
}Expand description
Compile-time phase block.
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.phase: CompilePhasePhase kind.
range: SourceLocationSource range for the block.
scope_id: Option<HirScopeId>Scope containing the block.
package_context: Option<String>Package context active at the block.
provenance: CompileProvenanceHow this fact was produced.
confidence: CompileConfidenceConfidence in this fact.
Trait Implementations§
Source§impl Clone for CompilePhaseBlock
impl Clone for CompilePhaseBlock
Source§fn clone(&self) -> CompilePhaseBlock
fn clone(&self) -> CompilePhaseBlock
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 CompilePhaseBlock
impl Debug for CompilePhaseBlock
Source§impl PartialEq for CompilePhaseBlock
impl PartialEq for CompilePhaseBlock
Source§fn eq(&self, other: &CompilePhaseBlock) -> bool
fn eq(&self, other: &CompilePhaseBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CompilePhaseBlock
impl StructuralPartialEq for CompilePhaseBlock
Auto Trait Implementations§
impl Freeze for CompilePhaseBlock
impl RefUnwindSafe for CompilePhaseBlock
impl Send for CompilePhaseBlock
impl Sync for CompilePhaseBlock
impl Unpin for CompilePhaseBlock
impl UnsafeUnpin for CompilePhaseBlock
impl UnwindSafe for CompilePhaseBlock
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