Struct sway_core::language::lexed::LexedSubmodule
source · pub struct LexedSubmodule {
pub library_name: Ident,
pub module: LexedModule,
}
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: LexedModule
Trait Implementations§
source§impl Clone for LexedSubmodule
impl Clone for LexedSubmodule
source§fn clone(&self) -> LexedSubmodule
fn clone(&self) -> LexedSubmodule
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