pub struct Module {
pub doc: Option<DocComment>,
pub pragmas: Vec<Pragma>,
pub name: Option<ModuleName>,
pub exports: Option<Vec<Export>>,
pub imports: Vec<ImportDecl>,
pub decls: Vec<Decl>,
pub span: Span,
}Expand description
A Haskell module.
Fields§
§doc: Option<DocComment>Module documentation comment.
pragmas: Vec<Pragma>Module pragmas (LANGUAGE, OPTIONS_GHC, etc.).
name: Option<ModuleName>Module name.
exports: Option<Vec<Export>>Export list.
imports: Vec<ImportDecl>Import declarations.
decls: Vec<Decl>Top-level declarations.
span: SpanSpan of the entire module.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
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