pub enum ScopeType {
Global,
Module,
Class,
NonArrowFunction,
ArrowFunction,
Block,
}
Variants§
Implementations§
source§impl ScopeType
impl ScopeType
pub fn is_closure(&self) -> bool
pub fn is_closure_or_class(&self) -> bool
pub fn is_closure_or_global(&self) -> bool
pub fn is_closure_or_block(&self) -> bool
Trait Implementations§
source§impl PartialEq for ScopeType
impl PartialEq for ScopeType
impl Copy for ScopeType
impl Eq for ScopeType
impl StructuralEq for ScopeType
impl StructuralPartialEq for ScopeType
Auto Trait Implementations§
impl RefUnwindSafe for ScopeType
impl Send for ScopeType
impl Sync for ScopeType
impl Unpin 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