Struct sway_parse::module::Module
source · [−]pub struct Module {
pub kind: ModuleKind,
pub semicolon_token: SemicolonToken,
pub dependencies: Vec<Dependency>,
pub items: Vec<Item>,
}
Fields
kind: ModuleKind
semicolon_token: SemicolonToken
dependencies: Vec<Dependency>
items: Vec<Item>
Trait Implementations
sourceimpl ParseToEnd for Module
impl ParseToEnd for Module
fn parse_to_end<'a, 'e>(
parser: Parser<'a, 'e>
) -> ParseResult<(Self, ParserConsumed<'a>)>
Auto Trait Implementations
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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