pub struct Program {
pub name: String,
pub options: Vec<ProgramOption>,
pub definitions: Vec<Definition>,
pub entry: Option<Block>,
pub state_sets: Vec<StateSet>,
pub exit: Option<Block>,
pub span: Span,
}Expand description
Top-level AST for an SNL program.
Fields§
§name: String§options: Vec<ProgramOption>§definitions: Vec<Definition>§entry: Option<Block>§state_sets: Vec<StateSet>§exit: Option<Block>§span: SpanTrait Implementations§
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