Struct swc_ecma_ast::VarDecl
source · [−]pub struct VarDecl {
pub span: Span,
pub kind: VarDeclKind,
pub declare: bool,
pub decls: Vec<VarDeclarator>,
}
Fields
span: Span
kind: VarDeclKind
declare: bool
decls: Vec<VarDeclarator>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for VarDecl
impl<'de> Deserialize<'de> for VarDecl
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for VarDecl
impl EqIgnoreSpan for VarDecl
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<VarDecl> for ModuleItem
impl From<VarDecl> for ModuleItem
sourcefn from(src: VarDecl) -> ModuleItem
fn from(src: VarDecl) -> ModuleItem
Converts to this type from the input type.
sourceimpl From<VarDecl> for VarDeclOrExpr
impl From<VarDecl> for VarDeclOrExpr
sourcefn from(src: VarDecl) -> VarDeclOrExpr
fn from(src: VarDecl) -> VarDeclOrExpr
Converts to this type from the input type.
sourceimpl From<VarDecl> for VarDeclOrPat
impl From<VarDecl> for VarDeclOrPat
sourcefn from(src: VarDecl) -> VarDeclOrPat
fn from(src: VarDecl) -> VarDeclOrPat
Converts to this type from the input type.
impl Eq for VarDecl
impl StructuralEq for VarDecl
impl StructuralPartialEq for VarDecl
Auto Trait Implementations
impl RefUnwindSafe for VarDecl
impl Send for VarDecl
impl Sync for VarDecl
impl Unpin for VarDecl
impl UnwindSafe for VarDecl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more