pub enum VarKind {
Show 13 variants
Normal,
FunctionDecl,
NewFunctionDecl,
Catch,
FunctionName,
PrivateField,
PrivateMethod,
PrivateGetter,
PrivateSetter,
PrivateGetterSetter,
GlobalFunctionDecl,
Using,
UsingMethod,
}Expand description
What a declared name is used for, which decides how it is displayed and how the function prologue initialises it.
Variants§
Normal
An ordinary binding.
FunctionDecl
A lexical binding holding a hoisted function declaration.
NewFunctionDecl
A lexical binding holding a hoisted async/generator function declaration.
Catch
A catch parameter.
FunctionName
The name bound to a named function expression, visible inside itself.
PrivateField
A private class field.
PrivateMethod
A private class method.
PrivateGetter
A private class getter.
PrivateSetter
A private class setter.
PrivateGetterSetter
A private class accessor pair (get and set sharing one name).
GlobalFunctionDecl
A global function declaration.
Using
A using declaration’s binding.
UsingMethod
The hidden local holding a using declaration’s cached dispose method.
Implementations§
Trait Implementations§
impl Copy for VarKind
impl Eq for VarKind
impl StructuralPartialEq for VarKind
Auto Trait Implementations§
impl Forget for VarKind
impl Freeze for VarKind
impl Move for VarKind
impl RefUnwindSafe for VarKind
impl Send for VarKind
impl Sync for VarKind
impl Unpin for VarKind
impl UnsafeUnpin for VarKind
impl UnwindSafe for VarKind
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