#[non_exhaustive]pub struct StackScope {
pub scope_type: Option<ScopeType>,
}Expand description
A scope node: where name lookups stop descending further down the stack.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scope_type: Option<ScopeType>The lexical construct this scope stands for, when known.
Trait Implementations§
Source§impl Clone for StackScope
impl Clone for StackScope
impl Copy for StackScope
Source§impl Debug for StackScope
impl Debug for StackScope
Source§impl Default for StackScope
impl Default for StackScope
impl Eq for StackScope
Source§impl PartialEq for StackScope
impl PartialEq for StackScope
impl StructuralPartialEq for StackScope
Auto Trait Implementations§
impl Forget for StackScope
impl Freeze for StackScope
impl RefUnwindSafe for StackScope
impl Send for StackScope
impl Sync for StackScope
impl Unpin for StackScope
impl UnsafeUnpin for StackScope
impl UnwindSafe for StackScope
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