Struct sway_core::language::parsed::ParseModule
source · pub struct ParseModule {
pub tree: ParseTree,
pub submodules: Vec<(DepName, ParseSubmodule)>,
}
Expand description
A module and its submodules in the form of a tree.
Fields
tree: ParseTree
The content of this module in the form of a ParseTree
.
submodules: Vec<(DepName, ParseSubmodule)>
Submodules introduced within this module using the dep
syntax in order of declaration.
Trait Implementations
sourceimpl Clone for ParseModule
impl Clone for ParseModule
sourcefn clone(&self) -> ParseModule
fn clone(&self) -> ParseModule
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 ParseModule
impl Send for ParseModule
impl Sync for ParseModule
impl Unpin for ParseModule
impl UnwindSafe for ParseModule
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