pub enum ExprKind<'p, 'ast> {
Show 30 variants
Null,
Bool(bool),
SelfObj,
Dollar,
String(&'ast str),
TextBlock(&'ast str),
Number(Number<'ast>),
Paren(&'ast Expr<'p, 'ast>),
Object(ObjInside<'p, 'ast>),
Array(&'ast [Expr<'p, 'ast>]),
ArrayComp(&'ast Expr<'p, 'ast>, &'ast [CompSpecPart<'p, 'ast>]),
Field(&'ast Expr<'p, 'ast>, Ident<'p>),
Index(&'ast Expr<'p, 'ast>, &'ast Expr<'p, 'ast>),
Slice(&'ast Expr<'p, 'ast>, Option<&'ast Expr<'p, 'ast>>, Option<&'ast Expr<'p, 'ast>>, Option<&'ast Expr<'p, 'ast>>),
SuperField(SpanId, Ident<'p>),
SuperIndex(SpanId, &'ast Expr<'p, 'ast>),
Call(&'ast Expr<'p, 'ast>, &'ast [Arg<'p, 'ast>], bool),
Ident(Ident<'p>),
Local(&'ast [Bind<'p, 'ast>], &'ast Expr<'p, 'ast>),
If(&'ast Expr<'p, 'ast>, &'ast Expr<'p, 'ast>, Option<&'ast Expr<'p, 'ast>>),
Binary(&'ast Expr<'p, 'ast>, BinaryOp, &'ast Expr<'p, 'ast>),
Unary(UnaryOp, &'ast Expr<'p, 'ast>),
ObjExt(&'ast Expr<'p, 'ast>, ObjInside<'p, 'ast>, SpanId),
Func(&'ast [Param<'p, 'ast>], &'ast Expr<'p, 'ast>),
Assert(&'ast Assert<'p, 'ast>, &'ast Expr<'p, 'ast>),
Import(&'ast Expr<'p, 'ast>),
ImportStr(&'ast Expr<'p, 'ast>),
ImportBin(&'ast Expr<'p, 'ast>),
Error(&'ast Expr<'p, 'ast>),
InSuper(&'ast Expr<'p, 'ast>, SpanId),
}Variants§
Null
Bool(bool)
SelfObj
Dollar
String(&'ast str)
TextBlock(&'ast str)
Number(Number<'ast>)
Paren(&'ast Expr<'p, 'ast>)
Object(ObjInside<'p, 'ast>)
Array(&'ast [Expr<'p, 'ast>])
ArrayComp(&'ast Expr<'p, 'ast>, &'ast [CompSpecPart<'p, 'ast>])
Field(&'ast Expr<'p, 'ast>, Ident<'p>)
Index(&'ast Expr<'p, 'ast>, &'ast Expr<'p, 'ast>)
Slice(&'ast Expr<'p, 'ast>, Option<&'ast Expr<'p, 'ast>>, Option<&'ast Expr<'p, 'ast>>, Option<&'ast Expr<'p, 'ast>>)
SuperField(SpanId, Ident<'p>)
SuperIndex(SpanId, &'ast Expr<'p, 'ast>)
Call(&'ast Expr<'p, 'ast>, &'ast [Arg<'p, 'ast>], bool)
Ident(Ident<'p>)
Local(&'ast [Bind<'p, 'ast>], &'ast Expr<'p, 'ast>)
If(&'ast Expr<'p, 'ast>, &'ast Expr<'p, 'ast>, Option<&'ast Expr<'p, 'ast>>)
Binary(&'ast Expr<'p, 'ast>, BinaryOp, &'ast Expr<'p, 'ast>)
Unary(UnaryOp, &'ast Expr<'p, 'ast>)
ObjExt(&'ast Expr<'p, 'ast>, ObjInside<'p, 'ast>, SpanId)
Func(&'ast [Param<'p, 'ast>], &'ast Expr<'p, 'ast>)
Assert(&'ast Assert<'p, 'ast>, &'ast Expr<'p, 'ast>)
Import(&'ast Expr<'p, 'ast>)
ImportStr(&'ast Expr<'p, 'ast>)
ImportBin(&'ast Expr<'p, 'ast>)
Error(&'ast Expr<'p, 'ast>)
InSuper(&'ast Expr<'p, 'ast>, SpanId)
Trait Implementations§
impl<'p, 'ast> Copy for ExprKind<'p, 'ast>
impl<'p, 'ast> Eq for ExprKind<'p, 'ast>
impl<'p, 'ast> StructuralPartialEq for ExprKind<'p, 'ast>
Auto Trait Implementations§
impl<'p, 'ast> Freeze for ExprKind<'p, 'ast>
impl<'p, 'ast> RefUnwindSafe for ExprKind<'p, 'ast>
impl<'p, 'ast> Send for ExprKind<'p, 'ast>
impl<'p, 'ast> Sync for ExprKind<'p, 'ast>
impl<'p, 'ast> Unpin for ExprKind<'p, 'ast>
impl<'p, 'ast> UnwindSafe for ExprKind<'p, 'ast>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.