Struct llhd::module::Module
[−]
[src]
pub struct Module { /* fields omitted */ }
Methods
impl Module
[src]
fn new() -> Module
[src]
Create a new empty module.
fn add_function(&mut self, func: Function) -> FunctionRef
[src]
Add a function to the module.
fn add_process(&mut self, prok: Process) -> ProcessRef
[src]
Add a process to the module.
fn add_entity(&mut self, entity: Entity) -> EntityRef
[src]
Add a entity to the module.
fn function(&self, func: FunctionRef) -> &Function
[src]
Get a reference to a function in the module.
fn function_mut(&mut self, func: FunctionRef) -> &mut Function
[src]
Get a mutable reference to a function in the module.
fn process(&self, prok: ProcessRef) -> &Process
[src]
Get a reference to a process in the module.
fn process_mut(&mut self, prok: ProcessRef) -> &mut Process
[src]
Get a mutable reference to a process in the module.
fn entity(&self, entity: EntityRef) -> &Entity
[src]
Get a reference to an entity in the module.
fn entity_mut(&mut self, entity: EntityRef) -> &mut Entity
[src]
Get a mutable reference to an entity in the module.
fn values(&self) -> Iter<ValueRef>
[src]
Obtain an iterator over the values in the module. This includes globals, functions, processes, and entities.