[−][src]Struct llhd::Module
Methods
impl Module
[src]
impl Module
pub fn new() -> Module | [src] |
Create a new empty module.
pub fn add_function(&mut self, func: Function) -> FunctionRef | [src] |
Add a function to the module.
pub fn add_process(&mut self, prok: Process) -> ProcessRef | [src] |
Add a process to the module.
pub fn add_entity(&mut self, entity: Entity) -> EntityRef | [src] |
Add a entity to the module.
pub fn function(&self, func: FunctionRef) -> &Function | [src] |
Get a reference to a function in the module.
pub fn function_mut(&mut self, func: FunctionRef) -> &mut Function | [src] |
Get a mutable reference to a function in the module.
pub fn process(&self, prok: ProcessRef) -> &Process | [src] |
Get a reference to a process in the module.
pub fn process_mut(&mut self, prok: ProcessRef) -> &mut Process | [src] |
Get a mutable reference to a process in the module.
pub fn entity(&self, entity: EntityRef) -> &Entity | [src] |
Get a reference to an entity in the module.
pub fn entity_mut(&mut self, entity: EntityRef) -> &mut Entity | [src] |
Get a mutable reference to an entity in the module.
pub fn values(&self) -> Iter<ValueRef> | [src] |
Obtain an iterator over the values in the module. This includes globals, functions, processes, and entities.
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |