pub struct AstModule {
pub module_decl: Option<AstModuleDecl>,
pub imports: Vec<AstImport>,
pub annotations: Vec<AstAnnotation>,
pub items: Vec<AstTopItem>,
pub span: Option<Span>,
}Expand description
Root of a parsed .wspec file.
Fields§
§module_decl: Option<AstModuleDecl>§imports: Vec<AstImport>§annotations: Vec<AstAnnotation>§items: Vec<AstTopItem>§span: Option<Span>Trait Implementations§
impl StructuralPartialEq for AstModule
Auto Trait Implementations§
impl Freeze for AstModule
impl RefUnwindSafe for AstModule
impl Send for AstModule
impl Sync for AstModule
impl Unpin for AstModule
impl UnsafeUnpin for AstModule
impl UnwindSafe for AstModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more