pub enum ScopeType {
Block,
Class,
Declaration,
File,
Function,
Namespace,
}Expand description
The lexical construct a StackScope stands for.
Variants§
Block
A {}-delimited block (loop body, conditional branch, …).
Class
A class or struct body.
Declaration
A function/method/variable declaration’s own scope.
File
A whole source file.
Function
A function or method body.
Namespace
A namespace or module body.
Trait Implementations§
impl Copy for ScopeType
impl Eq for ScopeType
Source§impl Ord for ScopeType
impl Ord for ScopeType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ScopeType
impl PartialOrd for ScopeType
impl StructuralPartialEq for ScopeType
Auto Trait Implementations§
impl Forget for ScopeType
impl Freeze for ScopeType
impl RefUnwindSafe for ScopeType
impl Send for ScopeType
impl Sync for ScopeType
impl Unpin for ScopeType
impl UnsafeUnpin for ScopeType
impl UnwindSafe for ScopeType
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