pub struct Program {
pub statements: Vec<Statement>,
pub span: Span,
}Expand description
A complete source input containing zero or one query statement.
The parser accepts an optional trailing semicolon. The statement vector is empty for empty or trivia-only input and otherwise contains one statement.
Fields§
§statements: Vec<Statement>Statements in source order.
span: SpanThe complete non-trivia source extent.
Implementations§
Trait Implementations§
impl Eq for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnsafeUnpin for Program
impl UnwindSafe for Program
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