pub enum Expr<'i> {
Ident(Ident<'i>),
Str(Str<'i>),
FnCall(FnCall<'i>),
Num(Num),
BinOp(BinOp, Box<Self>, Box<Self>),
UnaryOp(UnaryOp, Loc, Box<Self>),
}Expand description
Parsed expression tree.
Variants§
Ident(Ident<'i>)
Identifier reference.
Str(Str<'i>)
String literal.
FnCall(FnCall<'i>)
Function call.
Num(Num)
Numeric literal.
BinOp(BinOp, Box<Self>, Box<Self>)
Binary operation with its two operands.
UnaryOp(UnaryOp, Loc, Box<Self>)
Unary operation with its start offset and operand.
Trait Implementations§
impl<'i> StructuralPartialEq for Expr<'i>
Auto Trait Implementations§
impl<'i> Freeze for Expr<'i>
impl<'i> RefUnwindSafe for Expr<'i>
impl<'i> Send for Expr<'i>
impl<'i> Sync for Expr<'i>
impl<'i> Unpin for Expr<'i>
impl<'i> UnsafeUnpin for Expr<'i>
impl<'i> UnwindSafe for Expr<'i>
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