pub enum BindingKind {
Var,
Let,
Const,
Function,
Class,
Param,
CatchParam,
Import,
FunctionName,
ClassName,
Arguments,
}Expand description
What declared a binding.
Variants§
Var
Let
Const
Function
A function declaration, or in sloppy code, the var binding Annex
B gives a function declared in a block.
Class
A class declaration’s name in the scope around it.
Param
CatchParam
Import
FunctionName
A function expression’s own name, inside it.
ClassName
A class’s own name, inside it.
Arguments
The arguments object of a function that isn’t an arrow, made
only when something refers to it.
Trait Implementations§
Source§impl Clone for BindingKind
impl Clone for BindingKind
impl Copy for BindingKind
Source§impl Debug for BindingKind
impl Debug for BindingKind
impl Eq for BindingKind
Source§impl Hash for BindingKind
impl Hash for BindingKind
Source§impl PartialEq for BindingKind
impl PartialEq for BindingKind
impl StructuralPartialEq for BindingKind
Auto Trait Implementations§
impl Forget for BindingKind
impl Freeze for BindingKind
impl Move for BindingKind
impl RefUnwindSafe for BindingKind
impl Send for BindingKind
impl Sync for BindingKind
impl Unpin for BindingKind
impl UnsafeUnpin for BindingKind
impl UnwindSafe for BindingKind
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