pub struct Program {
pub statements: Vec<Statement>,
pub span: Span,
}
Expand description
Represents a whole program source file in the SAP language. It is the root node for all syntax trees generated by the parser.
Fields§
§statements: Vec<Statement>
§span: Span
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin 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