Struct edlang_ir::ProgramBody
source · pub struct ProgramBody {
pub top_level_module_names: BTreeMap<String, DefId>,
pub top_level_modules: Vec<DefId>,
pub modules: BTreeMap<DefId, ModuleBody>,
pub functions: BTreeMap<DefId, Body>,
pub structs: BTreeMap<DefId, AdtBody>,
pub function_signatures: BTreeMap<DefId, (Vec<TypeInfo>, TypeInfo)>,
pub file_names: BTreeMap<usize, String>,
}
Fields§
§top_level_module_names: BTreeMap<String, DefId>
§top_level_modules: Vec<DefId>
The top level modules.
modules: BTreeMap<DefId, ModuleBody>
All the modules in a flat map.
functions: BTreeMap<DefId, Body>
This stores all the functions from all modules
structs: BTreeMap<DefId, AdtBody>
§function_signatures: BTreeMap<DefId, (Vec<TypeInfo>, TypeInfo)>
The function signatures.
file_names: BTreeMap<usize, String>
Trait Implementations§
source§impl Clone for ProgramBody
impl Clone for ProgramBody
source§fn clone(&self) -> ProgramBody
fn clone(&self) -> ProgramBody
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 moresource§impl Debug for ProgramBody
impl Debug for ProgramBody
source§impl Default for ProgramBody
impl Default for ProgramBody
source§fn default() -> ProgramBody
fn default() -> ProgramBody
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgramBody
impl RefUnwindSafe for ProgramBody
impl Send for ProgramBody
impl Sync for ProgramBody
impl Unpin for ProgramBody
impl UnwindSafe for ProgramBody
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