Struct swc_ecma_ast::VarDeclarator
source · [−]pub struct VarDeclarator {
pub span: Span,
pub name: Pat,
pub init: Option<Box<Expr>>,
pub definite: bool,
}
Fields
span: Span
name: Pat
init: Option<Box<Expr>>
Initialization expression.
definite: bool
Typescript only
Trait Implementations
sourceimpl Clone for VarDeclarator
impl Clone for VarDeclarator
sourcefn clone(&self) -> VarDeclarator
fn clone(&self) -> VarDeclarator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for VarDeclarator
impl Debug for VarDeclarator
sourceimpl<'de> Deserialize<'de> for VarDeclarator
impl<'de> Deserialize<'de> for VarDeclarator
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 VarDeclarator
impl EqIgnoreSpan for VarDeclarator
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl Hash for VarDeclarator
impl Hash for VarDeclarator
sourceimpl PartialEq<VarDeclarator> for VarDeclarator
impl PartialEq<VarDeclarator> for VarDeclarator
sourcefn eq(&self, other: &VarDeclarator) -> bool
fn eq(&self, other: &VarDeclarator) -> bool
sourceimpl Serialize for VarDeclarator
impl Serialize for VarDeclarator
sourceimpl Spanned for VarDeclarator
impl Spanned for VarDeclarator
sourceimpl Take for VarDeclarator
impl Take for VarDeclarator
impl Eq for VarDeclarator
impl StructuralEq for VarDeclarator
impl StructuralPartialEq for VarDeclarator
Auto Trait Implementations
impl RefUnwindSafe for VarDeclarator
impl Send for VarDeclarator
impl Sync for VarDeclarator
impl Unpin for VarDeclarator
impl UnwindSafe for VarDeclarator
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