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
sourceimpl Clone for ParseSubmodule
impl Clone for ParseSubmodule
sourcefn clone(&self) -> ParseSubmodule
fn clone(&self) -> ParseSubmodule
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 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