Struct sway_core::parse_tree::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
Auto Trait Implementations
impl RefUnwindSafe for ParseSubmodule
impl Send for ParseSubmodule
impl Sync for ParseSubmodule
impl Unpin for ParseSubmodule
impl UnwindSafe for ParseSubmodule
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