pub struct Entity { /* fields omitted */ }
An entity. Describes through its instructions the data dependencies in order
to react to changes in input signals. Implements data flow and timed
execution.
Create a new entity 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.
Obtain a reference to this entity.
Get the name of the entity.
Get a graph reference to one of the inputs of the entity.
Get a reference to the input arguments of the entity.
Get a mutable reference to the input arguments of the entity.
Get a graph reference to one of the outputs of the entity.
Get a reference to the output arguments of the entity.
Get a mutable reference to the output arguments of the entity.
Add an instruction to the body.
Move an instruction around within the body.
Remove an instruction from the body.
Get a reference to an instruction in the body. Panics if the instruction
does not exist.
Get a mutable reference to an instruction in the body. Panics if the
instruction does not exist.
Obtain an iterator over the instructions in this entity.
Obtain an iterator over references to the instructions in this entity.
Get the unique ID of the value.
Get the type of the value.
Get the optional name of the value.
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
type Error = !
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
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.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static