Struct llhd::process::Process
[−]
[src]
pub struct Process { /* fields omitted */ }
A process. Sequentially executes instructions to react to changes in input signals. Implements control flow and timed execution.
Methods
impl Process
[src]
fn new(name: String, ty: Type) -> Process
[src]
Create a new process with the given name and type signature. Anonymous
arguments are created for each input and output in the type signature.
Use the inputs_mut
and outputs_mut
functions get a hold of these
arguments and assign names and additional data to them.
fn as_ref(&self) -> ProcessRef
[src]
Obtain a reference to this process.
fn name(&self) -> &str
[src]
Get the name of the process.
fn input(&self, idx: usize) -> ArgumentRef
[src]
Get a graph reference to one of the inputs of the entity.
fn inputs(&self) -> &[Argument]
[src]
Get a reference to the input arguments of the process.
fn inputs_mut(&mut self) -> &mut [Argument]
[src]
Get a mutable reference to the input arguments of the process.
fn output(&self, idx: usize) -> ArgumentRef
[src]
Get a graph reference to one of the outputs of the entity.
fn outputs(&self) -> &[Argument]
[src]
Get a reference to the output arguments of the process.
fn outputs_mut(&mut self) -> &mut [Argument]
[src]
Get a mutable reference to the output arguments of the process.
fn body(&self) -> &SeqBody
[src]
Get a reference to the sequential body of the process.
fn body_mut(&mut self) -> &mut SeqBody
[src]
Get a mutable reference to the sequential body of the process.
Trait Implementations
impl Value for Process
[src]
fn id(&self) -> ValueId
[src]
Get the unique ID of the value.
fn ty(&self) -> Type
[src]
Get the type of the value.
fn name(&self) -> Option<&str>
[src]
Get the optional name of the value.
fn is_global(&self) -> bool
[src]
Whether this value is global or not. Global values are considered during linking, and are visible in a module's symbol table. Local values are not, and are only visible within the surrounding context (module or unit). Read more