pub enum Expr {
ArrayExpr(ArrayExpr),
BetweenExpr(BetweenExpr),
BinExpr(BinExpr),
CallExpr(CallExpr),
CaseExpr(CaseExpr),
CastExpr(CastExpr),
FieldExpr(FieldExpr),
IndexExpr(IndexExpr),
Literal(Literal),
NameRef(NameRef),
}
Variants§
ArrayExpr(ArrayExpr)
BetweenExpr(BetweenExpr)
BinExpr(BinExpr)
CallExpr(CallExpr)
CaseExpr(CaseExpr)
CastExpr(CastExpr)
FieldExpr(FieldExpr)
IndexExpr(IndexExpr)
Literal(Literal)
NameRef(NameRef)
Trait Implementations§
Source§impl AstNode for Expr
impl AstNode for Expr
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Source§impl From<BetweenExpr> for Expr
impl From<BetweenExpr> for Expr
Source§fn from(node: BetweenExpr) -> Expr
fn from(node: BetweenExpr) -> Expr
Converts to this type from the input type.
impl Eq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl !RefUnwindSafe for Expr
impl !Send for Expr
impl !Sync for Expr
impl Unpin for Expr
impl !UnwindSafe for Expr
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