pub enum ScopeKind {
Global,
Package,
Subroutine,
Block,
Eval,
}Expand description
Classification of lexical scope types in Perl for Parse/Analyze workflows.
Defines different scope boundaries with specific symbol visibility and resolution rules according to Perl language semantics.
§Scope Hierarchy
- Global: File-level symbols and imports
- Package: Package-qualified namespace
- Subroutine: Function parameters and local variables
- Block: Control structure lexical variables
- Eval: Dynamic evaluation context
Workflow: Parse/Analyze scope classification.
Variants§
Global
Global/file scope
Package
Package scope
Subroutine
Subroutine scope
Block
Block scope (if, while, for, etc.)
Eval
Eval scope
Trait Implementations§
impl Copy for ScopeKind
impl Eq for ScopeKind
impl StructuralPartialEq for ScopeKind
Auto Trait Implementations§
impl Freeze for ScopeKind
impl RefUnwindSafe for ScopeKind
impl Send for ScopeKind
impl Sync for ScopeKind
impl Unpin for ScopeKind
impl UnsafeUnpin for ScopeKind
impl UnwindSafe for ScopeKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.