[][src]Struct llhd::Process

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]

pub fn new(
    name: impl Into<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.

pub fn as_ref(&self) -> ProcessRef
[src]

Obtain a reference to this process.

pub fn name(&self) -> &str
[src]

Get the name of the process.

pub fn input(&self, idx: usize) -> ArgumentRef
[src]

Get a graph reference to one of the inputs of the entity.

pub fn inputs(&self) -> &[Argument]
[src]

Get a reference to the input arguments of the process.

pub fn inputs_mut(&mut self) -> &mut [Argument]
[src]

Get a mutable reference to the input arguments of the process.

pub fn output(&self, idx: usize) -> ArgumentRef
[src]

Get a graph reference to one of the outputs of the entity.

pub fn outputs(&self) -> &[Argument]
[src]

Get a reference to the output arguments of the process.

pub fn outputs_mut(&mut self) -> &mut [Argument]
[src]

Get a mutable reference to the output arguments of the process.

pub fn body(&self) -> &SeqBody
[src]

Get a reference to the sequential body of the process.

pub 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]

Auto Trait Implementations

impl Send for Process

impl Sync for Process

Blanket Implementations

impl<T> From for T
[src]

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

impl<T, U> TryFrom for T where
    T: From<U>, 
[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> BorrowMut 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]