[−][src]Struct llhd::Module
Methods
impl Module
[src]
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, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
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]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
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]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,