#[non_exhaustive]pub enum ScopeKind {
File,
Package,
Block,
Subroutine,
Method,
Signature,
Format,
EvalString,
PhaseBlock,
}Expand description
Scope frame category.
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.
File
Whole-file root scope.
Package
Package context scope.
Block
Plain block scope.
Subroutine
Subroutine pad scope.
Method
Method pad scope.
Signature
Signature parameter scope.
Format
Legacy format declaration scope.
EvalString
Dynamic/string eval scope boundary.
PhaseBlock
Compile-time phase block scope, such as BEGIN.
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