pub struct MainProgramNode {
pub name: Option<String>,
pub specification_part: Vec<SpecificationStmt>,
pub execution_part: Vec<ExecutableStmt>,
pub internal_subprograms: Vec<ProgramUnitKind>,
pub span: Range<usize>,
}Expand description
Main program node.
Fields§
§name: Option<String>The optional name of the main program.
specification_part: Vec<SpecificationStmt>The specification statements in the main program.
execution_part: Vec<ExecutableStmt>The executable statements in the main program.
internal_subprograms: Vec<ProgramUnitKind>Internal subprograms defined within the main program.
span: Range<usize>The byte range of this node in the source text.
Trait Implementations§
Source§impl Clone for MainProgramNode
impl Clone for MainProgramNode
Source§fn clone(&self) -> MainProgramNode
fn clone(&self) -> MainProgramNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MainProgramNode
impl Debug for MainProgramNode
Source§impl<'de> Deserialize<'de> for MainProgramNode
impl<'de> Deserialize<'de> for MainProgramNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MainProgramNode
impl PartialEq for MainProgramNode
Source§fn eq(&self, other: &MainProgramNode) -> bool
fn eq(&self, other: &MainProgramNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MainProgramNode
impl Serialize for MainProgramNode
impl StructuralPartialEq for MainProgramNode
Auto Trait Implementations§
impl Freeze for MainProgramNode
impl RefUnwindSafe for MainProgramNode
impl Send for MainProgramNode
impl Sync for MainProgramNode
impl Unpin for MainProgramNode
impl UnsafeUnpin for MainProgramNode
impl UnwindSafe for MainProgramNode
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