pub enum AstNode {
Statement(Box<Statement>),
Expr(Expr),
SelectItem(SelectItem),
JoinClause(JoinClause),
OrderByItem(OrderByItem),
Cte(Box<Cte>),
ColumnDef(ColumnDef),
TableConstraint(TableConstraint),
}Expand description
A wrapper around an AST node that can represent either statements or expressions, enabling uniform diff output.
Variants§
Statement(Box<Statement>)
Expr(Expr)
SelectItem(SelectItem)
JoinClause(JoinClause)
OrderByItem(OrderByItem)
Cte(Box<Cte>)
ColumnDef(ColumnDef)
TableConstraint(TableConstraint)
Trait Implementations§
impl StructuralPartialEq for AstNode
Auto Trait Implementations§
impl Freeze for AstNode
impl RefUnwindSafe for AstNode
impl Send for AstNode
impl Sync for AstNode
impl Unpin for AstNode
impl UnsafeUnpin for AstNode
impl UnwindSafe for AstNode
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