pub struct AssignExpr {
pub span: Span,
pub op: AssignOp,
pub left: AssignTarget,
pub right: Box<Expr>,
}Fields§
§span: Span§op: AssignOp§left: AssignTarget§right: Box<Expr>Implementations§
Source§impl AssignExpr
impl AssignExpr
pub fn is_simple_assign(&self) -> bool
Trait Implementations§
Source§impl Clone for AssignExpr
impl Clone for AssignExpr
Source§fn clone(&self) -> AssignExpr
fn clone(&self) -> AssignExpr
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssignExpr
impl Debug for AssignExpr
Source§impl Default for AssignExpr
impl Default for AssignExpr
Source§fn default() -> AssignExpr
fn default() -> AssignExpr
Returns the “default value” for a type. Read more
Source§impl EqIgnoreSpan for AssignExpr
impl EqIgnoreSpan for AssignExpr
fn eq_ignore_span(&self, other: &AssignExpr) -> bool
Source§impl<V> FoldWith<V> for AssignExpr
impl<V> FoldWith<V> for AssignExpr
Source§fn fold_with(self, visitor: &mut V) -> AssignExpr
fn fold_with(self, visitor: &mut V) -> AssignExpr
Calls Fold::fold_assign_expr with self.
Source§fn fold_children_with(self, visitor: &mut V) -> AssignExpr
fn fold_children_with(self, visitor: &mut V) -> AssignExpr
Visit children nodes of
self`` with visitor`.Source§impl From<AssignExpr> for Expr
impl From<AssignExpr> for Expr
Source§fn from(v: AssignExpr) -> Expr
fn from(v: AssignExpr) -> Expr
Converts to this type from the input type.
Source§impl Hash for AssignExpr
impl Hash for AssignExpr
Source§impl Node for AssignExpr
impl Node for AssignExpr
Source§impl PartialEq for AssignExpr
impl PartialEq for AssignExpr
Source§impl Spanned for AssignExpr
impl Spanned for AssignExpr
Source§impl Take for AssignExpr
impl Take for AssignExpr
Source§impl<V> VisitMutWith<V> for AssignExpr
impl<V> VisitMutWith<V> for AssignExpr
Source§fn visit_mut_with(&mut self, visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)
Calls VisitMut::visit_mut_assign_expr with self.
Source§fn visit_mut_children_with(&mut self, visitor: &mut V)
fn visit_mut_children_with(&mut self, visitor: &mut V)
Visit children nodes of
self`` with visitor`.Source§impl<V> VisitWith<V> for AssignExpr
impl<V> VisitWith<V> for AssignExpr
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_assign_expr with self.
Source§fn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Visit children nodes of
self`` with visitor`.impl Eq for AssignExpr
impl StructuralPartialEq for AssignExpr
Auto Trait Implementations§
impl Freeze for AssignExpr
impl RefUnwindSafe for AssignExpr
impl Send for AssignExpr
impl Sync for AssignExpr
impl Unpin for AssignExpr
impl UnwindSafe for AssignExpr
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> ExprFactory for T
impl<T> ExprFactory for T
Source§fn as_arg(self) -> ExprOrSpread
fn as_arg(self) -> ExprOrSpread
Source§fn into_return_stmt(self) -> ReturnStmt
fn into_return_stmt(self) -> ReturnStmt
Creates a statement whcih return
self.fn as_callee(self) -> Callee
fn as_iife(self) -> CallExpr
Source§fn into_lazy_arrow(self, params: Vec<Pat>) -> ArrowExpr
fn into_lazy_arrow(self, params: Vec<Pat>) -> ArrowExpr
create a ArrowExpr which return self Read more
Source§fn into_lazy_fn(self, params: Vec<Param>) -> Function
fn into_lazy_fn(self, params: Vec<Param>) -> Function
create a Function which return self Read more
fn into_lazy_auto(self, params: Vec<Pat>, support_arrow: bool) -> Expr
Source§fn into_var_decl(self, kind: VarDeclKind, name: Pat) -> VarDecl
fn into_var_decl(self, kind: VarDeclKind, name: Pat) -> VarDecl
create a var declartor using self as init Read more
fn into_new_expr(self, span: Span, args: Option<Vec<ExprOrSpread>>) -> NewExpr
fn apply(self, span: Span, this: Box<Expr>, args: Vec<ExprOrSpread>) -> Expr
fn call_fn(self, span: Span, args: Vec<ExprOrSpread>) -> Expr
fn as_call(self, span: Span, args: Vec<ExprOrSpread>) -> Expr
fn as_fn_decl(self) -> Option<FnDecl>
fn as_class_decl(self) -> Option<ClassDecl>
fn wrap_with_paren(self) -> Expr
Source§fn make_assign_to(self, op: AssignOp, left: AssignTarget) -> Expr
fn make_assign_to(self, op: AssignOp, left: AssignTarget) -> Expr
Creates a assign expr
$lhs $op $selffn make_member(self, prop: IdentName) -> MemberExpr
fn computed_member<T>(self, prop: T) -> MemberExpr
Source§impl<T> ImplicitClone for Twhere
T: Clone,
impl<T> ImplicitClone for Twhere
T: Clone,
fn clone_quote_var(&self) -> Self
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 moreSource§impl<T> SpanExt for Twhere
T: Spanned,
impl<T> SpanExt for Twhere
T: Spanned,
fn is_synthesized(&self) -> bool
fn starts_on_new_line(&self, format: ListFormat) -> bool
Source§fn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.