[][src]Struct llhd::Module

pub struct Module { /* fields omitted */ }

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

impl Send for Module

impl Sync for Module

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]