pub enum Expr {
Show 16 variants
Literal(Literal),
Identifier(Identifier),
BinaryOp(Box<BinaryExpression>),
LogicalOp(Box<LogicalExpression>),
Call(Box<CallExpression>),
Array(ArrayExpression),
Object(ObjectExpression),
Member(Box<MemberExpression>),
Assign(Box<AssignmentExpression>),
Conditional(Box<ConditionalExpression>),
Unary(Box<UnaryExpression>),
Update(Box<UpdateExpression>),
Sequence(SequenceExpression),
Function(FunctionExpression),
This,
New(Box<NewExpression>),
}
Expand description
The enumeration of every possible kind of JS expressions.
Variants
Literal(Literal)
Identifier(Identifier)
BinaryOp(Box<BinaryExpression>)
LogicalOp(Box<LogicalExpression>)
Call(Box<CallExpression>)
Array(ArrayExpression)
Object(ObjectExpression)
Member(Box<MemberExpression>)
Assign(Box<AssignmentExpression>)
Conditional(Box<ConditionalExpression>)
Unary(Box<UnaryExpression>)
Update(Box<UpdateExpression>)
Sequence(SequenceExpression)
Function(FunctionExpression)
This
New(Box<NewExpression>)
Trait Implementations
sourceimpl From<ArrayExpression> for Expr
impl From<ArrayExpression> for Expr
sourcefn from(v: ArrayExpression) -> Self
fn from(v: ArrayExpression) -> Self
Converts to this type from the input type.
sourceimpl From<BinaryExpression> for Expr
impl From<BinaryExpression> for Expr
sourcefn from(v: BinaryExpression) -> Self
fn from(v: BinaryExpression) -> Self
Converts to this type from the input type.
sourceimpl From<CallExpression> for Expr
impl From<CallExpression> for Expr
sourcefn from(v: CallExpression) -> Self
fn from(v: CallExpression) -> Self
Converts to this type from the input type.
sourceimpl From<FunctionExpression> for Expr
impl From<FunctionExpression> for Expr
sourcefn from(v: FunctionExpression) -> Self
fn from(v: FunctionExpression) -> Self
Converts to this type from the input type.
sourceimpl From<Identifier> for Expr
impl From<Identifier> for Expr
sourcefn from(v: Identifier) -> Self
fn from(v: Identifier) -> Self
Converts to this type from the input type.
sourceimpl From<MemberExpression> for Expr
impl From<MemberExpression> for Expr
sourcefn from(v: MemberExpression) -> Self
fn from(v: MemberExpression) -> Self
Converts to this type from the input type.
sourceimpl From<ObjectExpression> for Expr
impl From<ObjectExpression> for Expr
sourcefn from(v: ObjectExpression) -> Self
fn from(v: ObjectExpression) -> Self
Converts to this type from the input type.
sourceimpl From<UnaryExpression> for Expr
impl From<UnaryExpression> for Expr
sourcefn from(v: UnaryExpression) -> Self
fn from(v: UnaryExpression) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Expr
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl !Send for Expr
impl !Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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