#[non_exhaustive]pub enum CompileEffectSourceKind {
Show 14 variants
PackageDecl,
SubDecl,
MethodDecl,
VariableDecl,
UseDirective,
NoDirective,
RequireDirective,
PhaseBlock,
SymbolicReferenceDeref,
Assignment,
TypeglobAssignment,
ScopeGraph,
StashGraph,
CompileEnvironment,
}Expand description
Source construct that produced a compile effect.
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.
PackageDecl
package declaration.
SubDecl
sub declaration.
MethodDecl
method declaration.
VariableDecl
Variable declaration.
UseDirective
use directive.
NoDirective
no directive.
RequireDirective
require directive.
PhaseBlock
Compile-time phase block.
SymbolicReferenceDeref
Symbolic-reference dereference.
Assignment
Assignment expression.
TypeglobAssignment
Typeglob assignment.
ScopeGraph
Derived HIR scope graph fact.
StashGraph
Derived HIR stash graph fact.
CompileEnvironment
Derived compile-environment fact.
Trait Implementations§
Source§impl Clone for CompileEffectSourceKind
impl Clone for CompileEffectSourceKind
Source§fn clone(&self) -> CompileEffectSourceKind
fn clone(&self) -> CompileEffectSourceKind
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 CompileEffectSourceKind
impl Debug for CompileEffectSourceKind
Source§impl Hash for CompileEffectSourceKind
impl Hash for CompileEffectSourceKind
Source§impl PartialEq for CompileEffectSourceKind
impl PartialEq for CompileEffectSourceKind
Source§fn eq(&self, other: &CompileEffectSourceKind) -> bool
fn eq(&self, other: &CompileEffectSourceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CompileEffectSourceKind
impl Eq for CompileEffectSourceKind
impl StructuralPartialEq for CompileEffectSourceKind
Auto Trait Implementations§
impl Freeze for CompileEffectSourceKind
impl RefUnwindSafe for CompileEffectSourceKind
impl Send for CompileEffectSourceKind
impl Sync for CompileEffectSourceKind
impl Unpin for CompileEffectSourceKind
impl UnsafeUnpin for CompileEffectSourceKind
impl UnwindSafe for CompileEffectSourceKind
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