#[non_exhaustive]pub enum CompileEffectKind {
Show 14 variants
DeclarePackage,
DeclareSub,
DeclareMethod,
DeclareBinding,
SetPragmaState,
AddIncludePath,
RemoveIncludePath,
RequestModule,
ImportSymbols,
AssignInheritance,
AssignGlobAlias,
DefineConstant,
RegisterPrototype,
EmitDynamicBoundary,
}Expand description
Compiler state mutation represented by an 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.
DeclarePackage
Declare a package/stash.
DeclareSub
Declare a subroutine code slot.
DeclareMethod
Declare a method code slot.
DeclareBinding
Declare a lexical or package binding.
SetPragmaState
Set effective pragma or feature state.
AddIncludePath
Add an include path.
RemoveIncludePath
Remove an include path.
RequestModule
Record a module load or resolution request.
ImportSymbols
Record an import-symbol relationship.
AssignInheritance
Assign an inheritance edge.
AssignGlobAlias
Assign a simple typeglob alias.
DefineConstant
Define a constant-like code slot.
RegisterPrototype
Register a prototype-bearing subroutine.
EmitDynamicBoundary
Emit a dynamic-boundary fact instead of guessing.
Trait Implementations§
Source§impl Clone for CompileEffectKind
impl Clone for CompileEffectKind
Source§fn clone(&self) -> CompileEffectKind
fn clone(&self) -> CompileEffectKind
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 CompileEffectKind
impl Debug for CompileEffectKind
Source§impl Hash for CompileEffectKind
impl Hash for CompileEffectKind
Source§impl PartialEq for CompileEffectKind
impl PartialEq for CompileEffectKind
Source§fn eq(&self, other: &CompileEffectKind) -> bool
fn eq(&self, other: &CompileEffectKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CompileEffectKind
impl Eq for CompileEffectKind
impl StructuralPartialEq for CompileEffectKind
Auto Trait Implementations§
impl Freeze for CompileEffectKind
impl RefUnwindSafe for CompileEffectKind
impl Send for CompileEffectKind
impl Sync for CompileEffectKind
impl Unpin for CompileEffectKind
impl UnsafeUnpin for CompileEffectKind
impl UnwindSafe for CompileEffectKind
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