Struct llhd::argument::Argument
[−]
[src]
pub struct Argument { /* fields omitted */ }
A function argument or process/entity input or output.
Methods
impl Argument
[src]
fn new(ty: Type) -> Argument
[src]
Create a new argument of the given type.
fn as_ref(&self) -> ArgumentRef
[src]
Obtain a reference to this argument.
fn set_name<S: Into<String>>(&mut self, name: S)
[src]
Set the name of the argument.
Trait Implementations
impl Value for Argument
[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