Struct swc_estree_ast::VariableDeclarator
source · pub struct VariableDeclarator {
pub base: BaseNode,
pub id: LVal,
pub init: Option<Box<Expression>>,
pub definite: Option<bool>,
}
Fields§
§base: BaseNode
§id: LVal
§init: Option<Box<Expression>>
§definite: Option<bool>
Trait Implementations§
source§impl Clone for VariableDeclarator
impl Clone for VariableDeclarator
source§fn clone(&self) -> VariableDeclarator
fn clone(&self) -> VariableDeclarator
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 VariableDeclarator
impl Debug for VariableDeclarator
source§impl<'de> Deserialize<'de> for VariableDeclarator
impl<'de> Deserialize<'de> for VariableDeclarator
source§fn 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
source§impl PartialEq for VariableDeclarator
impl PartialEq for VariableDeclarator
source§fn eq(&self, other: &VariableDeclarator) -> bool
fn eq(&self, other: &VariableDeclarator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VariableDeclarator
impl Serialize for VariableDeclarator
impl StructuralPartialEq for VariableDeclarator
Auto Trait Implementations§
impl Freeze for VariableDeclarator
impl RefUnwindSafe for VariableDeclarator
impl Send for VariableDeclarator
impl Sync for VariableDeclarator
impl Unpin for VariableDeclarator
impl UnwindSafe for VariableDeclarator
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more