pub struct Module {
pub id: NodeId,
pub name: Name,
pub pos: Position,
pub parent_class: Option<ParentClass>,
pub internal: bool,
pub has_constructor: bool,
pub constructor: Option<Function>,
pub fields: Vec<Field>,
pub methods: Vec<Function>,
pub initializers: Vec<Box<Stmt>>,
}
Fields§
§id: NodeId
§name: Name
§pos: Position
§parent_class: Option<ParentClass>
§internal: bool
§has_constructor: bool
§constructor: Option<Function>
§fields: Vec<Field>
§methods: Vec<Function>
§initializers: Vec<Box<Stmt>>
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 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