pub struct Function { /* fields omitted */ }
A function. Sequentially executes instructions to determine a result value
from its inputs. Implements control flow and immediate execution.
Create a new function with the given name and type signature. Anonymous
arguments are created for each argument in the type signature. Use the
args_mut
function to get a hold of these arguments and assign names
and additional data to them.
Obtain a reference to this function.
Get the name of the function.
Get the return type of the function.
Get a graph reference to one of the arguments of the function.
Get a reference to the arguments of the function.
Get a mutable reference to the arguments of the function.
pub fn body(&self) -> &SeqBody | [src] |
Get a reference to the sequential body of the function.
pub fn body_mut(&mut self) -> &mut SeqBody | [src] |
Get a mutable reference to the sequential body of the function.
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
🔬 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
🔬 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
)
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static