Struct sway_core::language::parsed::ParseSubmodule
source · pub struct ParseSubmodule {
pub library_name: Ident,
pub module: ParseModule,
}
Expand description
A library module that was declared as a dep
of another module.
Only submodules are guaranteed to be a library
and have a library_name
.
Fields§
§library_name: Ident
The name of a submodule, parsed from the library
declaration within the module itself.
module: ParseModule
Trait Implementations§
source§impl Clone for ParseSubmodule
impl Clone for ParseSubmodule
source§fn clone(&self) -> ParseSubmodule
fn clone(&self) -> ParseSubmodule
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 more