#[non_exhaustive]pub enum StashProvenance {
ExactAst,
DesugaredAst,
DynamicBoundary,
}Expand description
Provenance for HIR-local stash 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 such as use parent.
DynamicBoundary
Fact came from conservative dynamic-boundary classification.
Trait Implementations§
Source§impl Clone for StashProvenance
impl Clone for StashProvenance
Source§fn clone(&self) -> StashProvenance
fn clone(&self) -> StashProvenance
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 moreimpl Copy for StashProvenance
Source§impl Debug for StashProvenance
impl Debug for StashProvenance
impl Eq for StashProvenance
Source§impl Hash for StashProvenance
impl Hash for StashProvenance
Source§impl PartialEq for StashProvenance
impl PartialEq for StashProvenance
Source§fn eq(&self, other: &StashProvenance) -> bool
fn eq(&self, other: &StashProvenance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StashProvenance
Auto Trait Implementations§
impl Freeze for StashProvenance
impl RefUnwindSafe for StashProvenance
impl Send for StashProvenance
impl Sync for StashProvenance
impl Unpin for StashProvenance
impl UnsafeUnpin for StashProvenance
impl UnwindSafe for StashProvenance
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