pub struct Module {
pub name: Option<ModuleName>,
pub parent: ModId,
pub members: IdRange<MemberId>,
pub items: u32,
pub locals: u32,
pub frame: IdRange<FrameId>,
pub imports: IdRange<ImportId>,
pub body: NodeId,
}Expand description
A module of the chunk: the top module, or a nested one.
Fields§
§name: Option<ModuleName>The canonical name the host gave it, if any.
parent: ModIdThe enclosing module, ModId::NONE for the top module.
members: IdRange<MemberId>The member index space: the items, then the locals, then the iotas,
each sorted by Sym.
items: u32How many of members are items; the locals follow them.
locals: u32How many of members are locals; the iotas follow them.
frame: IdRange<FrameId>The names of the frame slots, imports first.
imports: IdRange<ImportId>The specs of the leading frame slots.
body: NodeIdA recur group’s body or a source’s __main, or NodeId::NONE.
Trait Implementations§
impl Eq for Module
impl StructuralPartialEq for Module
Auto Trait Implementations§
impl !RefUnwindSafe for Module
impl !Sync for Module
impl !UnwindSafe for Module
impl Freeze for Module
impl Send for Module
impl Unpin for Module
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more