#[non_exhaustive]pub enum CompileProvenance {
ExactAst,
DesugaredAst,
DynamicBoundary,
}Expand description
Provenance for HIR-local compile-environment facts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ExactAst
Fact came directly from parser AST syntax.
DesugaredAst
Fact came from a simple compile-time desugaring.
DynamicBoundary
Fact came from conservative dynamic-boundary classification.
Trait Implementations§
Source§impl Clone for CompileProvenance
impl Clone for CompileProvenance
Source§fn clone(&self) -> CompileProvenance
fn clone(&self) -> CompileProvenance
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 CompileProvenance
impl Debug for CompileProvenance
Source§impl Hash for CompileProvenance
impl Hash for CompileProvenance
Source§impl PartialEq for CompileProvenance
impl PartialEq for CompileProvenance
Source§fn eq(&self, other: &CompileProvenance) -> bool
fn eq(&self, other: &CompileProvenance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CompileProvenance
impl Eq for CompileProvenance
impl StructuralPartialEq for CompileProvenance
Auto Trait Implementations§
impl Freeze for CompileProvenance
impl RefUnwindSafe for CompileProvenance
impl Send for CompileProvenance
impl Sync for CompileProvenance
impl Unpin for CompileProvenance
impl UnsafeUnpin for CompileProvenance
impl UnwindSafe for CompileProvenance
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