Struct edlang_ir::ModuleBody
source · pub struct ModuleBody {
pub module_id: DefId,
pub parent_ids: Vec<DefId>,
pub name: String,
pub symbols: SymbolTable,
pub functions: HashSet<DefId>,
pub structs: HashSet<DefId>,
pub types: HashSet<DefId>,
pub constants: HashSet<DefId>,
pub modules: HashSet<DefId>,
pub imports: BTreeMap<String, DefId>,
pub span: Span,
}
Fields§
§module_id: DefId
§parent_ids: Vec<DefId>
§name: String
§symbols: SymbolTable
§functions: HashSet<DefId>
Functions defined in this module.
structs: HashSet<DefId>
Structs defined in this module.
types: HashSet<DefId>
Types defined in this module.
constants: HashSet<DefId>
Constants defined in this module.
modules: HashSet<DefId>
Submodules defined in this module.
imports: BTreeMap<String, DefId>
Imported items. symbol -> id
span: Span
Trait Implementations§
source§impl Clone for ModuleBody
impl Clone for ModuleBody
source§fn clone(&self) -> ModuleBody
fn clone(&self) -> ModuleBody
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ModuleBody
impl Send for ModuleBody
impl Sync for ModuleBody
impl Unpin for ModuleBody
impl UnwindSafe for ModuleBody
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