Enum deno_ast::BindingKind
source · pub enum BindingKind {
Var,
Const,
Let,
Function,
Param,
Class,
CatchClause,
NamespaceImport,
ValueImport,
Type,
}
Variants§
Var
Const
Let
Function
Param
Class
CatchClause
NamespaceImport
This means that the binding comes from ImportStarAsSpecifier
, like
import * as foo from "foo.ts";
foo
effectively represents a namespace.
ValueImport
Represents ImportDefaultSpecifier
or ImportNamedSpecifier
.
e.g.
- import foo from “foo.ts”;
- import { foo } from “foo.ts”;
Type
Implementations§
Trait Implementations§
source§impl Clone for BindingKind
impl Clone for BindingKind
source§fn clone(&self) -> BindingKind
fn clone(&self) -> BindingKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BindingKind
impl Debug for BindingKind
source§impl Hash for BindingKind
impl Hash for BindingKind
source§impl PartialEq for BindingKind
impl PartialEq for BindingKind
source§fn eq(&self, other: &BindingKind) -> bool
fn eq(&self, other: &BindingKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BindingKind
impl Eq for BindingKind
impl StructuralEq for BindingKind
impl StructuralPartialEq for BindingKind
Auto Trait Implementations§
impl RefUnwindSafe for BindingKind
impl Send for BindingKind
impl Sync for BindingKind
impl Unpin 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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.