Struct valkyrie_ast::ProgramRoot
source · pub struct ProgramRoot {
pub statements: Vec<StatementKind>,
}
Expand description
The top level elements in script mode.
Fields§
§statements: Vec<StatementKind>
All the statements in the program.
Trait Implementations§
source§impl Clone for ProgramRoot
impl Clone for ProgramRoot
source§fn clone(&self) -> ProgramRoot
fn clone(&self) -> ProgramRoot
Returns a copy of the value. Read more
1.0.0 · 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 ProgramRoot
impl Debug for ProgramRoot
source§impl Hash for ProgramRoot
impl Hash for ProgramRoot
source§impl PartialEq for ProgramRoot
impl PartialEq for ProgramRoot
source§fn eq(&self, other: &ProgramRoot) -> bool
fn eq(&self, other: &ProgramRoot) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProgramRoot
impl StructuralPartialEq for ProgramRoot
Auto Trait Implementations§
impl RefUnwindSafe for ProgramRoot
impl Send for ProgramRoot
impl Sync for ProgramRoot
impl Unpin for ProgramRoot
impl UnwindSafe for ProgramRoot
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