Struct sway_core::language::parsed::ParseProgram
source · pub struct ParseProgram {
pub kind: TreeType,
pub root: ParseModule,
}
Expand description
A parsed, but not yet type-checked, Sway program.
Includes all modules in the form of a ParseModule
tree accessed via the root
.
Fields
kind: TreeType
root: ParseModule
Trait Implementations
sourceimpl Clone for ParseProgram
impl Clone for ParseProgram
sourcefn clone(&self) -> ParseProgram
fn clone(&self) -> ParseProgram
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for ParseProgram
impl Send for ParseProgram
impl Sync for ParseProgram
impl Unpin for ParseProgram
impl UnwindSafe for ParseProgram
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more